Snippets for ipmiutil 3.2.2 from Nix x86_64-linux
Sourced from https://hydra.nixos.org/log/91rpibhvz77aifd4k4q0l87v5a2dngf9-ipmiutil-3.2.2.drv.
-
ievents.c:1850:50: warning: '%s' directive writing up to 79 bytes into a region of size 78 [-Wformat-overflow=] 1850 | sprintf(mystr,"%s%c %s",mem_str(i),bcomma,mdesc); | ^~ ~~~~~ -
ievents.c:1846:50: warning: '%s' directive writing up to 79 bytes into a region of size 78 [-Wformat-overflow=] 1846 | sprintf(mystr,"%s%c %s",mem_str(i),bcomma,mdesc); | ^~ ~~~~~ -
ievents.c:1853:50: warning: '%s' directive writing up to 79 bytes into a region of size 78 [-Wformat-overflow=] 1853 | sprintf(mystr,"%s%c %s",mem_str(i),bcomma,mdesc); | ^~ ~~~~~ -
/nix/store/29isvm6vfq10c528i31igdiy3fnvjcm3-glibc-2.42-67-dev/include/bits/stdio2.h:118:10: warning: 'dimm' may be used uninitialized [-Wmaybe-uninitialized] 118 | return __printf_chk (__USE_FORTIFY_LEVEL - 1, __fmt, __va_arg_pack ()); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
igetevent.c:1001:9: warning: ignoring return value of 'chdir' declared with attribute 'warn_unused_result' [-Wunused-result] 1001 | chdir("/"); | ^~~~~~~~~~ -
igetevent.c:1008:9: warning: ignoring return value of 'dup' declared with attribute 'warn_unused_result' [-Wunused-result] 1008 | dup(0); dup(0); | ^~~~~~ -
igetevent.c:1008:17: warning: ignoring return value of 'dup' declared with attribute 'warn_unused_result' [-Wunused-result] 1008 | dup(0); dup(0); | ^~~~~~ -
ilan.c:3198:29: warning: '%d' directive writing between 1 and 10 bytes into a region of size between 3 and 16 [-Wformat-overflow=] 3198 | sprintf (ifname, "%s%d", ifpattn, i); | ^~ -
ilan.c:4609:25: warning: '%d' directive writing between 1 and 10 bytes into a region of size between 3 and 16 [-Wformat-overflow=] 4609 | sprintf (ifname, "%s%d", ifpattn, i); /*eth%d */ | ^~ -
isensor.c:2683:54: warning: '%s' directive output may be truncated writing up to 49 bytes into a region of size 47 [-Wformat-truncation=] 2683 | else snprintf(rdgstr,sizeof(rdgstr),"%02x %s",sens[0],oem_string); | ^~ ~~~~~~~~~~ -
/nix/store/29isvm6vfq10c528i31igdiy3fnvjcm3-glibc-2.42-67-dev/include/bits/stdio2.h:68:10: warning: 'val' may be used uninitialized [-Wmaybe-uninitialized] 68 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 69 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 70 | __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 -
ihpm.c:1160:5: warning: ignoring return value of 'scanf' declared with attribute 'warn_unused_result' [-Wunused-result] 1160 | scanf("%s",userInput); | ^~~~~~~~~~~~~~~~~~~~~ -
ihpm.c:2649:10: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [-Wunused-result] 2649 | fread(pFwupgCtx->pImageData, sizeof(unsigned char), pFwupgCtx->imageSize, pImageFile); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
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