Snippets for nwipe 0.43 from Fedora s390x
Sourced from https://kojipkgs.fedoraproject.org/packages/nwipe/0.43/3.fc46/data/logs/s390x/build.log.
-
options.c:828:61: warning: array subscript 200 is above array bounds of ‘char[200]’ [-Warray-bounds=] 828 | nwipe_options.exclude[idx_drive][idx_drive_chr] = 0; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ -
options.c:770:17: warning: ‘strncpy’ specified bound 4096 equals destination size [-Wstringop-truncation] 770 | strncpy( nwipe_options.logfile, optarg, sizeof( nwipe_options.logfile ) ); | ^ -
options.c:776:17: warning: ‘strncpy’ specified bound 2048 equals destination size [-Wstringop-truncation] 776 | strncpy( nwipe_options.PDFreportpath, optarg, sizeof( nwipe_options.PDFreportpath ) ); | ^ -
logging.c:990:10: warning: variable ‘duration’ set but not used [-Wunused-but-set-variable=] 990 | char duration[314]; | ^~~~~~~~ -
logging.c:986:10: warning: variable ‘summary_top_column_titles’ set but not used [-Wunused-but-set-variable=] 986 | char summary_top_column_titles[256]; | ^~~~~~~~~~~~~~~~~~~~~~~~~ -
logging.c:985:10: warning: variable ‘summary_top_border’ set but not used [-Wunused-but-set-variable=] 985 | char summary_top_border[256]; | ^~~~~~~~~~~~~~~~~~ -
logging.c:979:9: warning: variable ‘idx_src’ set but not used [-Wunused-but-set-variable=] 979 | int idx_src; | ^~~~~~~ -
logging.c:511:9: warning: ‘fclose’ called on pointer returned from a mismatched allocation function [-Wmismatched-dealloc] 511 | fclose( fp ); | ^~~~~~~~~~~~ -
logging.c:557:5: warning: ‘fclose’ called on pointer returned from a mismatched allocation function [-Wmismatched-dealloc] 557 | fclose( fp ); | ^~~~~~~~~~~~ -
logging.c:812:29: warning: ‘strncpy’ output may be truncated copying 63 bytes from a string of length 255 [-Wstringop-truncation] 812 | strncpy( ptrx->dmidecode_chassis_asset_tag, path, DMIDECODE_RESULT_LENGTH ); | ^ -
logging.c:800:29: warning: ‘strncpy’ output may be truncated copying 63 bytes from a string of length 255 [-Wstringop-truncation] 800 | strncpy( ptrx->dmidecode_chassis_serial_number, path, DMIDECODE_RESULT_LENGTH ); | ^ -
logging.c:775:29: warning: ‘strncpy’ output may be truncated copying 63 bytes from a string of length 255 [-Wstringop-truncation] 775 | strncpy( ptrx->dmidecode_baseboard_asset_tag, path, DMIDECODE_RESULT_LENGTH ); | ^ -
logging.c:762:29: warning: ‘strncpy’ output may be truncated copying 63 bytes from a string of length 255 [-Wstringop-truncation] 762 | strncpy( ptrx->dmidecode_baseboard_serial_number, path, DMIDECODE_RESULT_LENGTH ); | ^ -
logging.c:737:29: warning: ‘strncpy’ output may be truncated copying 63 bytes from a string of length 255 [-Wstringop-truncation] 737 | strncpy( ptrx->dmidecode_system_uuid, path, DMIDECODE_RESULT_LENGTH ); | ^ -
logging.c:725:29: warning: ‘strncpy’ output may be truncated copying 63 bytes from a string of length 255 [-Wstringop-truncation] 725 | strncpy( ptrx->dmidecode_system_serial_number, path, DMIDECODE_RESULT_LENGTH ); | ^ -
temperature.c:305:9: warning: variable ‘result’ set but not used [-Wunused-but-set-variable=] 305 | int result; | ^~~~~~ -
nwipe.c:461:23: warning: unused variable ‘live_print’ [-Wunused-variable] 461 | const int live_print = 1; | ^~~~~~~~~~ -
nwipe.c:1415:10: warning: unused variable ‘eta’ [-Wunused-variable] 1415 | char eta[9]; | ^~~ -
nwipe.c:1576:9: warning: variable ‘r’ set but not used [-Wunused-but-set-variable=] 1576 | int r; // A result buffer. | ^ -
pass_scatter.c:500:9: warning: variable ‘z’ set but not used [-Wunused-but-set-variable=] 500 | u64 z = c->device_size; | ^ -
gui.c:888:21: warning: variable ‘wcols’ set but not used [-Wunused-but-set-variable=] 888 | int wlines, wcols; | ^~~~~ -
gui.c:2853:15: warning: unused variable ‘tab2’ [-Wunused-variable] 2853 | const int tab2 = 30; | ^~~~ -
gui.c:3229:15: warning: unused variable ‘tab2’ [-Wunused-variable] 3229 | const int tab2 = 40; | ^~~~ -
gui.c:5683:23: warning: unused variable ‘setting’ [-Wunused-variable] 5683 | config_setting_t* setting; | ^~~~~~~ -
gui.c:5660:15: warning: unused variable ‘tab2’ [-Wunused-variable] 5660 | const int tab2 = 27; | ^~~~ -
gui.c:6322:76: warning: unused variable ‘customer_contact_phone’ [-Wunused-variable] 6322 | const char *customer_name, *customer_address, *customer_contact_name, *customer_contact_phone; | ^~~~~~~~~~~~~~~~~~~~~~ -
gui.c:6322:52: warning: unused variable ‘customer_contact_name’ [-Wunused-variable] 6322 | const char *customer_name, *customer_address, *customer_contact_name, *customer_contact_phone; | ^~~~~~~~~~~~~~~~~~~~~ -
gui.c:6316:9: warning: variable ‘wlines’ set but not used [-Wunused-but-set-variable=] 6316 | int wlines; | ^~~~~~ -
gui.c:6679:9: warning: variable ‘wcols’ set but not used [-Wunused-but-set-variable=] 6679 | int wcols; | ^~~~~ -
gui.c:6678:9: warning: variable ‘wlines’ set but not used [-Wunused-but-set-variable=] 6678 | int wlines; | ^~~~~~ -
gui.c:6664:15: warning: unused variable ‘tab2’ [-Wunused-variable] 6664 | const int tab2 = 27; | ^~~~ -
gui.c:7791:26: warning: unused variable ‘tim2’ [-Wunused-variable] 7791 | struct timespec tim, tim2; | ^~~~ -
gui.c:7791:21: warning: variable ‘tim’ set but not used [-Wunused-but-set-variable=] 7791 | struct timespec tim, tim2; | ^~~ -
gui.c:3061:13: warning: ‘nwipe_gui_format_topology_line’ defined but not used [-Wunused-function] 3061 | static void nwipe_gui_format_topology_line( const char* sysfs_target, const char* blockname, char* out, size_t outsz ) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
gui.c:3025:13: warning: ‘nwipe_gui_tail_truncate’ defined but not used [-Wunused-function] 3025 | static void nwipe_gui_tail_truncate( const char* in, char* out, size_t outsz, int maxw ) | ^~~~~~~~~~~~~~~~~~~~~~~ -
gui.c:6989:5: warning: ‘strncpy’ output may be truncated copying 4 bytes from a string of length 255 [-Wstringop-truncation] 6989 | strncpy( year, date_buffer, 4 ); | ^ -
gui.c:7141:5: warning: ‘strncpy’ output may be truncated copying 2 bytes from a string of length 255 [-Wstringop-truncation] 7141 | strncpy( month, date_buffer, 2 ); | ^ -
gui.c:7295:5: warning: ‘strncpy’ output may be truncated copying 2 bytes from a string of length 255 [-Wstringop-truncation] 7295 | strncpy( day, date_buffer, 2 ); | ^ -
gui.c:7447:5: warning: ‘strncpy’ output may be truncated copying 2 bytes from a string of length 255 [-Wstringop-truncation] 7447 | strncpy( hours, date_buffer, 2 ); | ^ -
gui.c:7599:5: warning: ‘strncpy’ output may be truncated copying 2 bytes from a string of length 255 [-Wstringop-truncation] 7599 | strncpy( minutes, date_buffer, 2 ); | ^ -
gui.c:8299:32: warning: ‘nwipe_time_now’ may be used uninitialized [-Wmaybe-uninitialized] 8299 | nwipe_time_now -= nwipe_time_start; | ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ -
device.c:350:71: warning: ‘/*’ within comment [-Wcomment] 350 | * (major/minor via st_rdev), so persistent names like /dev/disk/by-id/*
-
device.c:835:13: warning: ‘strncpy’ output may be truncated copying 20 bytes from a string of length 20 [-Wstringop-truncation] 835 | strncpy( next_device->device_serial_no, tmp_serial, NWIPE_SERIALNUMBER_LENGTH ); | ^ -
hpa_dco.c:76:9: warning: variable ‘nwipe_dco_real_max_sectors’ set but not used [-Wunused-but-set-variable=] 76 | u64 nwipe_dco_real_max_sectors; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ -
miscellaneous.c:330:9: warning: variable ‘r’ set but not used [-Wunused-but-set-variable=] 330 | int r; // A result buffer. | ^ -
miscellaneous.c:829:38: warning: passing argument 2 to ‘restrict’-qualified parameter aliases with argument 1 [-Wrestrict] 829 | if( realpath( full_path, full_path ) == NULL ) | ~~~~~~~~~ ^~~~~~~~~ -
miscellaneous.c:241:73: warning: ‘:’ directive output may be truncated writing 1 byte into a region of size between 0 and 15 [-Wformat-truncation=] 241 | snprintf( ctx->duration_str, sizeof( ctx->duration_str ), "%02i:%02i:%02i", hours, minutes, seconds ); | ^ -
miscellaneous.c:676:5: warning: ‘__strncpy_chk’ output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation] 676 | strncpy( model_lower_case, model, length ); | ^ -
conf.c:480:5: warning: ‘memset’ used with length equal to number of elements without multiplication by element size [-Wmemset-elt-size] 480 | memset( group_start, 0, MAX_GROUP_DEPTH + 2 ); | ^~~~~~ -
customers.c:53:12: warning: variable ‘result_size’ set but not used [-Wunused-but-set-variable=] 53 | size_t result_size; | ^~~~~~~~~~~ -
customers.c:516:21: warning: unused variable ‘idx3’ [-Wunused-variable] 516 | int idx1, idx2, idx3; | ^~~~ -
create_pdf.c:69:32: warning: unused variable ‘pdf_page_array’ [-Wunused-variable] 69 | extern struct pdf_object** pdf_page_array; | ^~~~~~~~~~~~~~ -
create_pdf.c:725:13: warning: ‘page_local’ may be used uninitialized [-Wmaybe-uninitialized] 725 | pdf_add_image_data( pdf, page_local, 450, 665, 100, 100, bin2c_te_jpg, 54896 ); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
create_pdf_graph.c:42:32: warning: unused variable ‘pdf_page_array’ [-Wunused-variable] 42 | extern struct pdf_object** pdf_page_array; | ^~~~~~~~~~~~~~ -
create_pdf_graph.c:233:20: warning: unused variable ‘COLOR_TEMP_MIN’ [-Wunused-variable] 233 | const uint32_t COLOR_TEMP_MIN = 0x9467BD; // Purple (Temp Min) | ^~~~~~~~~~~~~~ -
create_single_disc_pdf.c:69:12: warning: variable ‘idx’ set but not used [-Wunused-but-set-variable=] 69 | size_t idx; | ^~~ -
create_system_multi_disc_pdf.c:76:25: warning: unused variable ‘nwipe_chacha20_prng’ [-Wunused-variable] 76 | extern nwipe_prng_t nwipe_chacha20_prng; | ^~~~~~~~~~~~~~~~~~~ -
create_system_multi_disc_pdf.c:75:25: warning: unused variable ‘nwipe_aes_ctr_prng’ [-Wunused-variable] 75 | extern nwipe_prng_t nwipe_aes_ctr_prng; | ^~~~~~~~~~~~~~~~~~ -
create_system_multi_disc_pdf.c:74:25: warning: unused variable ‘nwipe_xorshift128plus_prng’ [-Wunused-variable] 74 | extern nwipe_prng_t nwipe_xorshift128plus_prng; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ -
create_system_multi_disc_pdf.c:73:25: warning: unused variable ‘nwipe_xoroshiro256_prng’ [-Wunused-variable] 73 | extern nwipe_prng_t nwipe_xoroshiro256_prng; | ^~~~~~~~~~~~~~~~~~~~~~~ -
create_system_multi_disc_pdf.c:72:25: warning: unused variable ‘nwipe_add_lagg_fibonacci_prng’ [-Wunused-variable] 72 | extern nwipe_prng_t nwipe_add_lagg_fibonacci_prng; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
create_system_multi_disc_pdf.c:71:25: warning: unused variable ‘nwipe_isaac64’ [-Wunused-variable] 71 | extern nwipe_prng_t nwipe_isaac64; | ^~~~~~~~~~~~~ -
create_system_multi_disc_pdf.c:70:25: warning: unused variable ‘nwipe_isaac’ [-Wunused-variable] 70 | extern nwipe_prng_t nwipe_isaac; | ^~~~~~~~~~~ -
create_system_multi_disc_pdf.c:69:25: warning: unused variable ‘nwipe_twister’ [-Wunused-variable] 69 | extern nwipe_prng_t nwipe_twister; | ^~~~~~~~~~~~~ -
xor/xoroshiro256_prng.c:58:20: warning: unused variable ‘result_starstar’ [-Wunused-variable] 58 | const uint64_t result_starstar = rotl( state->s[1] * 5, 7 ) * 9; | ^~~~~~~~~~~~~~~ -
hddtemp_scsi/scsicmds.c:184:49: warning: pointer targets in passing argument 4 of ‘scsi_command’ differ in signedness [-Wpointer-sign] 184 | return scsi_command(device, cdb, sizeof(cdb), buffer, cdb[4], SG_DXFER_TO_DEV); | ^~~~~~ | | | char * -
hddtemp_scsi/scsicmds.c:216:37: warning: pointer targets in passing argument 2 of ‘scsi_modeselect’ differ in signedness [-Wpointer-sign] 216 | return scsi_modeselect (device, buf); | ^~~ | | | unsigned char * -
create_single_disc_pdf.c:61:12: warning: type of ‘status_icon’ does not match original declaration [-Wlto-type-mismatch] 61 | extern int status_icon; | ^