Snippets for freeipmi 1.6.15 from Fedora s390x
Sourced from https://kojipkgs.fedoraproject.org/packages/freeipmi/1.6.15/6.fc45/data/logs/s390x/build.log.
-
cbuf.c:677:15: warning: variable 'l' set but not used [-Wunused-but-set-variable=] 677 | int n, m, l; | ^ -
cbuf.c:713:15: warning: variable 'l' set but not used [-Wunused-but-set-variable=] 713 | int n, m, l; | ^ -
cbuf.c:750:15: warning: variable 'l' set but not used [-Wunused-but-set-variable=] 750 | int n, m, l; | ^ -
cbuf.c:824:23: warning: variable 'n' set but not used [-Wunused-but-set-variable=] 824 | int nfree, ncopy, n; | ^ -
conffile.c:311:9: warning: variable 'continuation' set but not used [-Wunused-but-set-variable=] 311 | int continuation = 0; | ^~~~~~~~~~~~ -
conffile.c:666:13: warning: '__strncpy_chk' output may be truncated copying 1024 bytes from a string of length 65535 [-Wstringop-truncation] 666 | strncpy(data.stringlist[i], args[i], CONFFILE_MAX_ARGLEN); | ^ -
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') | ^~ -
fi_hostlist.c:240:10: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 240 | pl = strchr (host, '['); | ^ -
fi_hostlist.c:185:7: warning: '__strncpy_chk' output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation] 185 | strncpy (newp, with, len_with); | ^ -
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') | ^~ -
hostlist.c:1423:12: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 1423 | if ((p = strchr(str, '-'))) { | ^ -
hostlist.c:1535:9: warning: 'strncpy' specified bound 1024 equals destination size [-Wstringop-truncation] 1535 | strncpy(cur_tok, tok, 1024); | ^ -
api/ipmi-lan-session-common.c:1287:12: warning: unused variable 'val' [-Wunused-variable] 1287 | uint64_t val; | ^~~ -
cmds/ipmi-lan-cmds.c:1912:5: warning: 'strncpy' specified bound 18 equals destination size [-Wstringop-truncation] 1912 | strncpy (buf, community_string, IPMI_MAX_COMMUNITY_STRING_LENGTH); | ^ -
cmds/ipmi-messaging-support-cmds.c:1939:5: warning: 'strncpy' specified bound 16 equals destination size [-Wstringop-truncation] 1939 | strncpy (buf, user_name, IPMI_MAX_USER_NAME_LENGTH); | ^ -
cmds/ipmi-messaging-support-cmds.c:2310:5: warning: 'strncpy' specified bound 16 equals destination size [-Wstringop-truncation] 2310 | strncpy (buf, user_name, IPMI_MAX_USER_NAME_LENGTH); | ^ -
driver/ipmi-sunbmc-driver.c:381:2: warning: label 'out_io_init' defined but not used [-Wunused-label] 381 | out_io_init: | ^~~~~~~~~~~ -
interface/ipmi-rmcpplus-interface.c:1065:44: warning: variable 'expected_digest_len' set but not used [-Wunused-but-set-variable=] 1065 | unsigned int hash_algorithm, hash_flags, expected_digest_len, copy_digest_len, hash_data_len; | ^~~~~~~~~~~~~~~~~~~ -
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); | ~~~~~~~~~~~ -
sel/ipmi-sel-string-intel-node-manager.c:353:15: warning: variable 'cpu3_mc1' set but not used [-Wunused-but-set-variable=] 353 | uint8_t cpu3_mc1; | ^~~~~~~~ -
sel/ipmi-sel-string-intel-node-manager.c:351:15: warning: variable 'cpu3_mc0' set but not used [-Wunused-but-set-variable=] 351 | uint8_t cpu3_mc0; | ^~~~~~~~ -
sel/ipmi-sel-string-intel-node-manager.c:349:15: warning: variable 'cpu2_mc1' set but not used [-Wunused-but-set-variable=] 349 | uint8_t cpu2_mc1; | ^~~~~~~~ -
sel/ipmi-sel-string-intel-node-manager.c:347:15: warning: variable 'cpu2_mc0' set but not used [-Wunused-but-set-variable=] 347 | uint8_t cpu2_mc0; | ^~~~~~~~ -
sel/ipmi-sel-string-intel-node-manager.c:345:15: warning: variable 'cpu1_mc1' set but not used [-Wunused-but-set-variable=] 345 | uint8_t cpu1_mc1; | ^~~~~~~~ -
sel/ipmi-sel-string-intel-node-manager.c:343:15: warning: variable 'cpu1_mc0' set but not used [-Wunused-but-set-variable=] 343 | uint8_t cpu1_mc0; | ^~~~~~~~ -
sel/ipmi-sel-string-intel-node-manager.c:341:15: warning: variable 'cpu0_mc1' set but not used [-Wunused-but-set-variable=] 341 | uint8_t cpu0_mc1; | ^~~~~~~~ -
sel/ipmi-sel-string-intel-quanta-qssc-s4r.c:1161:15: warning: variable 'smi_link_valid' set but not used [-Wunused-but-set-variable=] 1161 | uint8_t smi_link_valid; | ^~~~~~~~~~~~~~ -
util/ipmi-rmcpplus-util.c:1251:16: warning: variable 'expected_digest_len' set but not used [-Wunused-but-set-variable=] 1251 | unsigned int expected_digest_len, compare_digest_len, hash_data_len = 0; | ^~~~~~~~~~~~~~~~~~~ -
scbuf.c:701:15: warning: variable 'l' set but not used [-Wunused-but-set-variable=] 701 | int n, m, l; | ^ -
scbuf.c:737:15: warning: variable 'l' set but not used [-Wunused-but-set-variable=] 737 | int n, m, l; | ^ -
scbuf.c:774:15: warning: variable 'l' set but not used [-Wunused-but-set-variable=] 774 | int n, m, l; | ^ -
scbuf.c:848:23: warning: variable 'n' set but not used [-Wunused-but-set-variable=] 848 | int nfree, ncopy, n; | ^ -
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-oem.c:1810:30: warning: variable ‘args’ set but not used [-Wunused-but-set-variable=] 1810 | struct ipmi_oem_arguments *args; | ^~~~ -
ipmi-oem-ibm.c:351:19: warning: ‘snprintf’ output may be truncated before the last format character [-Wformat-truncation=] 351 | "%s", | ^ -
ipmi-oem-dell.c:1105:11: warning: variable ‘autoconfiguration’ set but not used [-Wunused-but-set-variable=] 1105 | uint8_t autoconfiguration; | ^~~~~~~~~~~~~~~~~ -
ipmi-oem-dell.c:5054:12: warning: variable ‘peak_start_time’ set but not used [-Wunused-but-set-variable=] 5054 | uint32_t peak_start_time; | ^~~~~~~~~~~~~~~ -
ipmi-oem-intelnm.c:943:7: warning: variable ‘domainid_specified’ set but not used [-Wunused-but-set-variable=] 943 | int domainid_specified = 0; | ^~~~~~~~~~~~~~~~~~ -
ipmi-oem-intelnm.c:2820:7: warning: variable ‘aggressivepowercorrection_specified’ set but not used [-Wunused-but-set-variable=] 2820 | int aggressivepowercorrection_specified = 0; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
ipmi-oem-intelnm.c:5478:7: warning: variable ‘registerX_specified’ set but not used [-Wunused-but-set-variable=] 5478 | int registerX_specified= 0; | ^~~~~~~~~~~~~~~~~~~ -
ipmi-oem-intelnm.c:5747:7: warning: variable ‘cpu_socket_number_specified’ set but not used [-Wunused-but-set-variable=] 5747 | int cpu_socket_number_specified = 0; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ -
ipmi-oem-intelnm.c:5980:7: warning: variable ‘active_cores_configuration_specified’ set but not used [-Wunused-but-set-variable=] 5980 | int active_cores_configuration_specified = 0; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
ipmi-oem-intelnm.c:5978:7: warning: variable ‘cpu_socket_number_specified’ set but not used [-Wunused-but-set-variable=] 5978 | int cpu_socket_number_specified = 0; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ -
ipmi-sensors.c:624:15: warning: the comparison will always evaluate as ‘true’ for the address of ‘exclude_record_ids’ will never be NULL [-Waddress] 624 | if (state_data->prog_data->args->exclude_record_ids) | ^~~~~~~~~~