FreeBSD Bugzilla – Attachment 248857 Details for
Bug 277422
Fix build of tools/test/gpioevents
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
Patch to fix compilation of gpioevents
gp.diff (text/plain), 1.08 KB, created by
John F. Carr
on 2024-03-01 21:16:16 UTC
(
hide
)
Description:
Patch to fix compilation of gpioevents
Filename:
MIME Type:
Creator:
John F. Carr
Created:
2024-03-01 21:16:16 UTC
Size:
1.08 KB
patch
obsolete
>commit a752e207709da3eda2bb62db39550559ee2ece23 >Author: John F. Carr <jfc@mit.edu> >Date: Fri Mar 1 15:59:21 2024 -0500 > > Fix compilation with recent llvm versions > >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; >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 277422
: 248857