gpioevents: Fix build with newer Clang

PR:		277422
This commit is contained in:
John F. Carr 2024-03-02 10:38:04 -05:00 committed by Ed Maste
parent 7e4ac11b60
commit 42b117a4bd
2 changed files with 4 additions and 2 deletions

View file

@ -8,4 +8,6 @@ MK_MAN= no
BINDIR= /usr/bin
CWARNFLAGS += -Wno-gnu-folding-constant
.include <bsd.prog.mk>

View file

@ -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;