[Bug 271633] x11/nvidia-driver: nvlink_freebsd.c:122:24: error: a function declaration without a prototype is deprecated

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 25 May 2023 17:35:44 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=271633

            Bug ID: 271633
           Summary: x11/nvidia-driver: nvlink_freebsd.c:122:24: error: a
                    function declaration without a prototype is deprecated
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: Individual Port(s)
          Assignee: danfe@FreeBSD.org
          Reporter: ohartmann@walstatt.org
          Assignee: danfe@FreeBSD.org
             Flags: maintainer-feedback?(danfe@FreeBSD.org)

On recent FreeBSD CURRENT amd64, after commit:

commit 6c08fd3dc804c9c3064add3b9a6ff678a541d210

(URL:
https://cgit.FreeBSD.org/src/commit/?id=6c08fd3dc804c9c3064add3b9a6ff678a541d210)

port x11/nvidia-driver fails to compile:

[...]
nvlink_freebsd.c:122:24: error: a function declaration without a prototype is
deprecated in all versions of C [-Werror,-Wstrict-prototypes]
void * nvlink_allocLock()
                       ^
                        void
1 error generated.
*** [nvlink_freebsd.o] Error code 1

[...]

The bug seems easy to fix by replacing placing void * nvlink_allocLock() with a
proper version with a void prototype argument.

-- 
You are receiving this mail because:
You are the assignee for the bug.