Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 12 Feb 2023 00:59:05 GMT
From:      Jan Beich <jbeich@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 0e8e0e555b50 - main - x11/lavalauncher: unbreak build with clang 15
Message-ID:  <202302120059.31C0x5KI071162@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by jbeich:

URL: https://cgit.FreeBSD.org/ports/commit/?id=0e8e0e555b50d54ecb8cab59a12f1ff21bf62925

commit 0e8e0e555b50d54ecb8cab59a12f1ff21bf62925
Author:     Jan Beich <jbeich@FreeBSD.org>
AuthorDate: 2023-02-11 15:52:06 +0000
Commit:     Jan Beich <jbeich@FreeBSD.org>
CommitDate: 2023-02-12 00:50:59 +0000

    x11/lavalauncher: unbreak build with clang 15
    
    ../src/output.c:43:18: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
    static void noop () {}
                     ^
                      void
    ../src/seat.c:48:18: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
    static void noop () {}
                     ^
                      void
    
    Reported by:    pkg-fallout
---
 x11/lavalauncher/Makefile | 1 +
 1 file changed, 1 insertion(+)

diff --git a/x11/lavalauncher/Makefile b/x11/lavalauncher/Makefile
index b54ebf40a42e..9f98fb0a76fc 100644
--- a/x11/lavalauncher/Makefile
+++ b/x11/lavalauncher/Makefile
@@ -18,6 +18,7 @@ LIB_DEPENDS=	libwayland-client.so:graphics/wayland \
 
 USES=		compiler:c11 gnome meson pkgconfig
 USE_GNOME=	cairo
+CFLAGS+=	-Wno-error=strict-prototypes # Clang 15, similar to wlclock
 PLIST_FILES=	bin/${PORTNAME}
 
 OPTIONS_DEFINE=	EPOLL INOTIFY LIBRSVG2 MANPAGES



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202302120059.31C0x5KI071162>