Snippets for ipmiutil 3.2.1 from Alpine x86_64
Sourced from https://build.alpinelinux.org/buildlogs/build-edge-x86_64/community/ipmiutil/ipmiutil-3.2.1-r0.log.
-
ievents.c:818:10: warning: 'dimm' may be used uninitialized [-Wmaybe-uninitialized] 818 | printf("decode_mem_default: bdata=%02x(%d) %d dimm=%d\n",bdata,bdata,offset,dimm); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
/usr/include/fortify/stdio.h:122:16: warning: 'val' may be used uninitialized [-Wmaybe-uninitialized] 122 | return __orig_snprintf(__s, __n, __f, __builtin_va_arg_pack()); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
ihpm.c:1228:39: warning: format '%d' expects argument of type 'int', but argument 2 has type 'time_t' {aka 'long int'} [-Wformat=] 1228 | printf("| | Upload Time: %02d.%02d | Image Size: %05x |\n", | ~~~^ | | | int | %02ld 1229 | timeElapsed/60,timeElapsed%60,totalSent); | ~~~~~~~~~~~~~~ | | | time_t {aka long int} -
ihpm.c:1228:44: warning: format '%d' expects argument of type 'int', but argument 3 has type 'time_t' {aka 'long int'} [-Wformat=] 1228 | printf("| | Upload Time: %02d.%02d | Image Size: %05x |\n", | ~~~^ | | | int | %02ld 1229 | timeElapsed/60,timeElapsed%60,totalSent); | ~~~~~~~~~~~~~~ | | | time_t {aka long int} -
ihpm.c:2513:43: warning: format '%d' expects argument of type 'int', but argument 2 has type 'time_t' {aka 'long int'} [-Wformat=] 2513 | printf(" Time Taken %02d:%02d\n",(end-start)/60, (end-start)%60); | ~~~^ ~~~~~~~~~~~~~~ | | | | int time_t {aka long int} | %02ld -
ihpm.c:2513:48: warning: format '%d' expects argument of type 'int', but argument 3 has type 'time_t' {aka 'long int'} [-Wformat=] 2513 | printf(" Time Taken %02d:%02d\n",(end-start)/60, (end-start)%60); | ~~~^ ~~~~~~~~~~~~~~ | | | | int time_t {aka long int} | %02ld -
/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> | ^~~~~~~ -
oem_intel.c:1115:12: warning: 'bdata' may be used uninitialized [-Wmaybe-uninitialized] 1115 | if (bdata == 0xFF) n = sprintf(desc,DIMM_UNKNOWN); /* invalid */ | ^ -
oem_dell.c:4297:24: warning: format '%d' expects argument of type 'int', but argument 2 has type 'uint64_t' {aka 'long unsigned int'} [-Wformat=] 4297 | printf ("%4d BTU/hr ",tempbtuphrconv); | ~~^ ~~~~~~~~~~~~~~ | | | | int uint64_t {aka long unsigned int} | %4ld -
oem_dell.c:4299:24: warning: format '%d' expects argument of type 'int', but argument 2 has type 'uint64_t' {aka 'long unsigned int'} [-Wformat=] 4299 | printf ("%4d BTU/hr ",tempbtuphrconv); | ~~^ ~~~~~~~~~~~~~~ | | | | int uint64_t {aka long unsigned int} | %4ld -
oem_dell.c:4301:24: warning: format '%d' expects argument of type 'int', but argument 2 has type 'uint64_t' {aka 'long unsigned int'} [-Wformat=] 4301 | printf ("%4d BTU/hr ",tempbtuphrconv); | ~~^ ~~~~~~~~~~~~~~ | | | | int uint64_t {aka long unsigned int} | %4ld -
oem_dell.c:4303:24: warning: format '%d' expects argument of type 'int', but argument 2 has type 'uint64_t' {aka 'long unsigned int'} [-Wformat=] 4303 | printf ("%4d BTU/hr\n\r",tempbtuphrconv); | ~~^ ~~~~~~~~~~~~~~ | | | | int uint64_t {aka long unsigned int} | %4ld -
oem_dell.c:4307:24: warning: format '%d' expects argument of type 'int', but argument 2 has type 'uint64_t' {aka 'long unsigned int'} [-Wformat=] 4307 | printf ("%4d BTU/hr ",tempbtuphrconv); | ~~^ ~~~~~~~~~~~~~~ | | | | int uint64_t {aka long unsigned int} | %4ld -
oem_dell.c:4309:24: warning: format '%d' expects argument of type 'int', but argument 2 has type 'uint64_t' {aka 'long unsigned int'} [-Wformat=] 4309 | printf ("%4d BTU/hr ",tempbtuphrconv); | ~~^ ~~~~~~~~~~~~~~ | | | | int uint64_t {aka long unsigned int} | %4ld -
oem_dell.c:4311:24: warning: format '%d' expects argument of type 'int', but argument 2 has type 'uint64_t' {aka 'long unsigned int'} [-Wformat=] 4311 | printf ("%4d BTU/hr ",tempbtuphrconv); | ~~^ ~~~~~~~~~~~~~~ | | | | int uint64_t {aka long unsigned int} | %4ld -
oem_dell.c:4313:24: warning: format '%d' expects argument of type 'int', but argument 2 has type 'uint64_t' {aka 'long unsigned int'} [-Wformat=] 4313 | printf ("%4d BTU/hr\n\r",tempbtuphrconv); | ~~^ ~~~~~~~~~~~~~~ | | | | int uint64_t {aka long unsigned int} | %4ld -
oem_dell.c:4317:24: warning: format '%d' expects argument of type 'int', but argument 2 has type 'uint64_t' {aka 'long unsigned int'} [-Wformat=] 4317 | printf ("%4d BTU/hr ",tempbtuphrconv); | ~~^ ~~~~~~~~~~~~~~ | | | | int uint64_t {aka long unsigned int} | %4ld -
oem_dell.c:4319:24: warning: format '%d' expects argument of type 'int', but argument 2 has type 'uint64_t' {aka 'long unsigned int'} [-Wformat=] 4319 | printf ("%4d BTU/hr ",tempbtuphrconv); | ~~^ ~~~~~~~~~~~~~~ | | | | int uint64_t {aka long unsigned int} | %4ld -
oem_dell.c:4321:24: warning: format '%d' expects argument of type 'int', but argument 2 has type 'uint64_t' {aka 'long unsigned int'} [-Wformat=] 4321 | printf ("%4d BTU/hr ",tempbtuphrconv); | ~~^ ~~~~~~~~~~~~~~ | | | | int uint64_t {aka long unsigned int} | %4ld -
oem_dell.c:4323:24: warning: format '%d' expects argument of type 'int', but argument 2 has type 'uint64_t' {aka 'long unsigned int'} [-Wformat=] 4323 | printf ("%4d BTU/hr\n\r\n\r",tempbtuphrconv); | ~~^ ~~~~~~~~~~~~~~ | | | | int uint64_t {aka long unsigned int} | %4ld -
oem_dell.c:4330:27: warning: 'avgpower.lastminutepower' may be used uninitialized [-Wmaybe-uninitialized] 4330 | tempbtuphrconv=(avgpower.lastminutepower); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ -
oem_dell.c:4332:39: warning: 'avgpower.lasthourpower' may be used uninitialized [-Wmaybe-uninitialized] 4332 | tempbtuphrconv=(avgpower.lasthourpower); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ -
oem_dell.c:4334:39: warning: 'avgpower.lastdaypower' may be used uninitialized [-Wmaybe-uninitialized] 4334 | tempbtuphrconv=(avgpower.lastdaypower); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ -
oem_dell.c:4336:39: warning: 'avgpower.lastweakpower' may be used uninitialized [-Wmaybe-uninitialized] 4336 | tempbtuphrconv=(avgpower.lastweakpower); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ -
oem_dell.c:4340:39: warning: 'stPeakpower.lastminutepower' may be used uninitialized [-Wmaybe-uninitialized] 4340 | tempbtuphrconv=(stPeakpower.lastminutepower); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
oem_dell.c:4342:39: warning: 'stPeakpower.lasthourpower' may be used uninitialized [-Wmaybe-uninitialized] 4342 | tempbtuphrconv=(stPeakpower.lasthourpower); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
oem_dell.c:4344:39: warning: 'stPeakpower.lastdaypower' may be used uninitialized [-Wmaybe-uninitialized] 4344 | tempbtuphrconv=(stPeakpower.lastdaypower); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ -
oem_dell.c:4346:39: warning: 'stPeakpower.lastweakpower' may be used uninitialized [-Wmaybe-uninitialized] 4346 | tempbtuphrconv=(stPeakpower.lastweakpower); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
oem_dell.c:4366:9: warning: 'stPeakpower.lastminutepowertime' may be used uninitialized [-Wmaybe-uninitialized] 4366 | ipmi_time_to_str(lastminutepeakpower, timestr); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
oem_dell.c:4368:9: warning: 'stPeakpower.lasthourpowertime' may be used uninitialized [-Wmaybe-uninitialized] 4368 | ipmi_time_to_str(lasthourpeakpower, timestr); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
oem_dell.c:4370:9: warning: 'stPeakpower.lastdaypowertime' may be used uninitialized [-Wmaybe-uninitialized] 4370 | ipmi_time_to_str(lastdaypeakpower, timestr); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
oem_dell.c:4372:9: warning: 'stPeakpower.lastweekpowertime' may be used uninitialized [-Wmaybe-uninitialized] 4372 | ipmi_time_to_str(lastweekpeakpower, timestr); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
ipmi_sample_evt.c:243:29: warning: format '%x' expects argument of type 'unsigned int *', but argument 4 has type 'short unsigned int *' [-Wformat=] 243 | rv = fscanf(fd,"%x %x",&t,&r); | ~^ ~~ | | | | | short unsigned int * | unsigned int * | %hx