git: a081e7b88a54 - main - x11-clocks/wlclock: unbreak build with clang 15

From: Jan Beich <jbeich_at_FreeBSD.org>
Date: Sun, 12 Feb 2023 00:59:04 UTC
The branch main has been updated by jbeich:

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

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

    x11-clocks/wlclock: 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
    ../src/wlclock.c:578:23: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
    static void clock_run ()
                          ^
                           void
    
    Reported by:    pkg-fallout
---
 x11-clocks/wlclock/Makefile | 1 +
 1 file changed, 1 insertion(+)

diff --git a/x11-clocks/wlclock/Makefile b/x11-clocks/wlclock/Makefile
index c15a4bdef855..ddce2e51983f 100644
--- a/x11-clocks/wlclock/Makefile
+++ b/x11-clocks/wlclock/Makefile
@@ -15,6 +15,7 @@ LIB_DEPENDS=	libwayland-client.so:graphics/wayland
 
 USES=		compiler:c11 gnome meson pkgconfig
 USE_GNOME=	cairo
+CFLAGS+=	-Wno-error=strict-prototypes # https://lists.sr.ht/~leon_plickat/public-inbox/%3Cttzs-maz0-wny%40FreeBSD.org%3E
 PLIST_FILES=	bin/${PORTNAME}
 
 OPTIONS_DEFINE=	MANPAGES