[Nut-upsdev] warnings from build on NetBSD
Greg Troxel
gdt at lexort.com
Wed Mar 30 01:28:03 BST 2022
This is a remarkably short list!
* libusb1/0 both
../../drivers/dummy-ups.c:349:44: warning: passing argument 4 of ‘upscli_list_next’ from incompatible pointer type [-Wincompatible-pointer-types]
cc1: warning: unrecognized command line option ‘-Wno-unknown-warning-option’
cc1: warning: unrecognized command line option ‘-Wno-reserved-identifier’
../../../tools/nut-scanner/scan_usb.c:52:41: warning: ISO C forbids forward references to ‘enum’ types [-Wpedantic]
../../../tools/nut-scanner/scan_usb.c:52:41: warning: ‘enum libusb_error’ declared inside parameter list will not be visible outside of this definition or declaration
../../../tools/nut-scanner/scan_usb.c:246:34: warning: unused variable ‘dev_desc’ [-Wunused-variable]
cc1: warning: unrecognized command line option ‘-Wno-unknown-warning-option’
cc1: warning: unrecognized command line option ‘-Wno-reserved-identifier’
* libusb1 only
../../drivers/dummy-ups.c: In function ‘upsclient_update_vars’:
../../drivers/dummy-ups.c:349:44: warning: passing argument 4 of ‘upscli_list_next’ from incompatible pointer type [-Wincompatible-pointer-types]
while (upscli_list_next(ups, numq, query, &numa, &answer) == 1)
^
In file included from ../../drivers/dummy-ups.c:41:0:
/usr/pkg/include/upsclient.h:86:5: note: expected ‘unsigned int *’ but argument is of type ‘size_t * {aka long unsigned int *}’
int upscli_list_next(UPSCONN_t *ups, unsigned int numq, const char **query,
^~~~~~~~~~~~~~~~
../../drivers/dummy-ups.c: At top level:
cc1: warning: unrecognized command line option ‘-Wno-unknown-warning-option’
cc1: warning: unrecognized command line option ‘-Wno-reserved-identifier’
More information about the Nut-upsdev
mailing list