https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=277422
Bug ID: 277422
Summary: Fix build of tools/test/gpioevents
Product: Base System
Version: 15.0-CURRENT
Hardware: Any
OS: Any
Status: New
Severity: Affects Only Me
Priority: ---
Component: misc
Assignee: [email protected]
Reporter: [email protected]
Created attachment 248857
--> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=248857&action=edit
Patch to fix compilation of gpioevents
tools/test/gpioevents has bit-rotted and triggers errors from clang 17. Patch
attached.
Building /usr/obj/usr/src/arm64.aarch64/tools/test/gpioevents/gpioevents.o
/usr/src/tools/test/gpioevents/gpioevents.c:64:6: error: a function declaration
without a prototype is deprecated in all versions of C
[-Werror,-Wstrict-prototypes]
64 | usage()
| ^
| void
/usr/src/tools/test/gpioevents/gpioevents.c:155:16: error: a function
declaration without a prototype is deprecated in all versions of C
[-Werror,-Wstrict-prototypes]
155 | calc_utc_offset()
| ^
| void
/usr/src/tools/test/gpioevents/gpioevents.c:213:35: error: variable length
array folded to constant array as an extension [-Werror,-Wgnu-folding-constant]
213 | const struct gpio_event_summary sum[numrecs];
| ^
/usr/src/tools/test/gpioevents/gpioevents.c:214:35: error: variable length
array folded to constant array as an extension [-Werror,-Wgnu-folding-constant]
214 | const struct gpio_event_detail det[numrecs];
| ^
4 errors generated.
*** Error code 1
Stop.
--
You are receiving this mail because:
You are the assignee for the bug.