aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn F. Carr <jfc@mit.edu>2024-03-02 15:38:04 +0000
committerEd Maste <emaste@FreeBSD.org>2024-03-02 15:38:04 +0000
commit42b117a4bd104246589149fa9f7b9b7ddc144f23 (patch)
tree92e1edff8a5f5f3ad8d384dbcbc8fb821051f150
parent7e4ac11b6076e6a9bf7341ddeae22784284ed733 (diff)
downloadsrc-42b117a4bd104246589149fa9f7b9b7ddc144f23.tar.gz
src-42b117a4bd104246589149fa9f7b9b7ddc144f23.zip
gpioevents: Fix build with newer Clang
PR: 277422
-rw-r--r--tools/test/gpioevents/Makefile2
-rw-r--r--tools/test/gpioevents/gpioevents.c4
2 files changed, 4 insertions, 2 deletions
diff --git a/tools/test/gpioevents/Makefile b/tools/test/gpioevents/Makefile
index 7976bd03174a..4bc4422ae333 100644
--- a/tools/test/gpioevents/Makefile
+++ b/tools/test/gpioevents/Makefile
@@ -8,4 +8,6 @@ MK_MAN= no
BINDIR= /usr/bin
+CWARNFLAGS += -Wno-gnu-folding-constant
+
.include <bsd.prog.mk>
diff --git a/tools/test/gpioevents/gpioevents.c b/tools/test/gpioevents/gpioevents.c
index f1bc8e8ee224..43bad610cb68 100644
--- a/tools/test/gpioevents/gpioevents.c
+++ b/tools/test/gpioevents/gpioevents.c
@@ -61,7 +61,7 @@ sigio_handler(int sig __unused){
}
static void
-usage()
+usage(void)
{
fprintf(stderr, "usage: %s [-f ctldev] [-m method] [-s] [-n] [-S] [-u]"
"[-t timeout] [-d delay-usec] pin intr-config pin-mode [pin intr-config pin-mode ...]\n\n",
@@ -152,7 +152,7 @@ print_poll_events(short event)
}
static void
-calc_utc_offset()
+calc_utc_offset(void)
{
struct timespec monotime, utctime;