Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 12 Feb 2023 00:59:06 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: d21cddb8cbb8 - main - x11/wayout: unbreak build with clang 15
Message-ID:  <202302120059.31C0x6C8071186@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=d21cddb8cbb8577568ca630459e6e8761077ea09

commit d21cddb8cbb8577568ca630459e6e8761077ea09
Author:     Jan Beich <jbeich@FreeBSD.org>
AuthorDate: 2023-02-11 15:58:38 +0000
Commit:     Jan Beich <jbeich@FreeBSD.org>
CommitDate: 2023-02-12 00:51:00 +0000

    x11/wayout: unbreak build with clang 15
    
    ../src/output.c:22: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/wayout/Makefile | 1 +
 1 file changed, 1 insertion(+)

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



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