Snippets for freeipmi 1.6.19 from Alpine ppc64le
Sourced from https://build.alpinelinux.org/buildlogs/build-edge-ppc64le/community/freeipmi/freeipmi-1.6.19-r0.log.
-
fi_hostlist.c:102:46: warning: comparison between pointer and zero character constant [-Wpointer-compare] 102 | while (**str != '\0' && strchr(sep, **str) != '\0') | ^~ -
fi_hostlist.c:118:48: warning: comparison between pointer and zero character constant [-Wpointer-compare] 118 | while (**str != '\0' && strchr(sep, **str) == '\0') | ^~ -
fi_hostlist.c:123:46: warning: comparison between pointer and zero character constant [-Wpointer-compare] 123 | while (**str != '\0' && strchr(sep, **str) != '\0') | ^~ -
hostlist.c:392:48: warning: comparison between pointer and zero character constant [-Wpointer-compare] 392 | while (**str != '\0' && strchr(sep, **str) != '\0') | ^~ -
hostlist.c:408:52: warning: comparison between pointer and zero character constant [-Wpointer-compare] 408 | while (**str != '\0' && strchr(sep, **str) == '\0') | ^~ -
hostlist.c:413:48: warning: comparison between pointer and zero character constant [-Wpointer-compare] 413 | while (**str != '\0' && strchr(sep, **str) != '\0') | ^~ -
/usr/include/sys/poll.h:1:2: warning: #warning redirecting incorrect #include <sys/poll.h> to <poll.h> [-Wcpp] 1 | #warning redirecting incorrect #include <sys/poll.h> to <poll.h> | ^~~~~~~ -
sel/ipmi-sel-string.c:1440:49: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 4079 [-Wformat-truncation=] 1440 | "Previous State = %s", | ^~ 1441 | tmppreviousbuf); | ~~~~~~~~~~~~~~ -
sel/ipmi-sel-string.c:1455:49: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 4079 [-Wformat-truncation=] 1455 | "Severity State = %s", | ^~ 1456 | tmpseveritybuf); | ~~~~~~~~~~~~~~ -
sel/ipmi-sel-string.c:1464:43: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 4079 [-Wformat-truncation=] 1464 | "Previous State = %s%sSeverity State = %s", | ^~ 1465 | tmppreviousbuf, | ~~~~~~~~~~~~~~ -
sel/ipmi-sel-string.c:2226:43: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 4079 [-Wformat-truncation=] 2226 | "Severity State = %s", | ^~ 2227 | tmpstatebuf); | ~~~~~~~~~~~ -
sel/ipmi-sel-string.c:2211:43: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 4079 [-Wformat-truncation=] 2211 | "Previous State = %s", | ^~ 2212 | tmpstatebuf); | ~~~~~~~~~~~ -
ipmi_monitoring_sdr_cache.c:195:16: warning: '/' directive output may be truncated writing 1 byte into a region of size between 0 and 4096 [-Wformat-truncation=] 195 | "%s/%s", | ^ -
ipmi-config-category-sensors-threshold-section.c:1372:63: warning: '%s' directive output may be truncated writing up to 1024 bytes into a region of size between 967 and 979 [-Wformat-truncation=] 1372 | "Give valid input for sensor type = %s; units = %s", | ^~ 1373 | sensor_type_str ? sensor_type_str : UNRECOGNIZED_SENSOR_TYPE, 1374 | sensor_units_buf); | ~~~~~~~~~~~~~~~~ -
ipmi-config-category-sensors-threshold-section.c:1223:16: warning: '; 'None' to not use hysteresis' directive output may be truncated writing 30 bytes into a region of size between 0 and 1024 [-Wformat-truncation=] 1223 | "%s; 'None' to not use hysteresis", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
ipmi-oem-ibm.c:351:19: warning: 'snprintf' output may be truncated before the last format character [-Wformat-truncation=] 351 | "%s", | ^ -
ipmi-oem-ibm.c:770:41: warning: '%s' directive output may be truncated writing up to 1024 bytes into a region of size between 992 and 1002 [-Wformat-truncation=] 770 | "%%-%du | %%-%ds | %%-%ds | %s\n", | ^~ -
ipmi-locate.c:102:15: warning: format '%llX' expects argument of type 'long long unsigned int', but argument 2 has type 'uint64_t' {aka 'long unsigned int'} [-Wformat=] 102 | printf ("BMC memory base address: 0x" FI_64 "X\n", info->driver_address); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~ | | | uint64_t {aka long unsigned int} -
ipmi-locate.c:105:15: warning: format '%llX' expects argument of type 'long long unsigned int', but argument 2 has type 'uint64_t' {aka 'long unsigned int'} [-Wformat=] 105 | printf ("BMC I/O base address: 0x" FI_64 "X\n", info->driver_address); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~ | | | uint64_t {aka long unsigned int} -
ipmidetectd.c:297:33: warning: '%s' directive output may be truncated writing up to 1024 bytes into a region of size 1017 [-Wformat-truncation=] 297 | "::ffff:%s", tmpipv4buf); | ^~ ~~~~~~~~~~