1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-11-27 08:00:11 +00:00

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;