Snippets for lilo 24.2 from Nix x86_64-linux
Sourced from https://hydra.nixos.org/log/0ij53453smr0k10npw101yplbvixmka1-lilo-24.2.drv.
-
raid.c:236:17: warning: variable 'disk_fd' set but not used [-Wunused-but-set-variable] 236 | int disk_fd; | ^~~~~~~ -
geometry.c:1176:13: warning: variable 'raid_limit' set but not used [-Wunused-but-set-variable] 1176 | int raid_limit; | ^~~~~~~~~~ -
device.c:948:9: warning: '__builtin_strncpy' output truncated before terminating nul copying 5 bytes from a string of the same length [-Wstringop-truncation] 948 | strncpy(name, DEV_DISK_DIR "/", strlen(DEV_DISK_DIR)+1); | ^ -
bsect.c:988:13: warning: value computed is not used [-Wunused-value] 988 | *tmp++; | ^~~~~~ -
bsect.c:558:5: warning: '__builtin_strncpy' output truncated before terminating nul copying 4 bytes from a string of the same length [-Wstringop-truncation] 558 | strncpy(menu->menu_sig, "MENU", 4); | ^ -
/nix/store/m300ngckdmal8wnl3bjbpwca3a5bn74c-glibc-2.42-67-dev/include/bits/string_fortified.h:29:10: warning: '__builtin_memcpy' forming offset [8, 441] is out of the bounds [0, 8] of object 'First' with type 'BUILTIN_FILE' [-Warray-bounds=] 29 | return __builtin___memcpy_chk (__dest, __src, __len, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 30 | __glibc_objsize0 (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ -
/nix/store/m300ngckdmal8wnl3bjbpwca3a5bn74c-glibc-2.42-67-dev/include/bits/string_fortified.h:29:10: warning: '__builtin_memcpy' forming offset [8, 437] is out of the bounds [0, 8] [-Warray-bounds=] 29 | return __builtin___memcpy_chk (__dest, __src, __len, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 30 | __glibc_objsize0 (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ -
probe.c:194:10: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] 194 | if (*(int*)buf.s5.checksum != crc32((unsigned char*)&buf.s5 + 4, got-4, CRC_POLY1)) | ^~~~~~~~~~~~~~~~~~~~~ -
probe.c:233:6: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] 233 | *(int*)buf.s5.checksum = crc32((unsigned char*)&buf.s5 + 4, i-4, CRC_POLY1); | ^~~~~~~~~~~~~~~~~~~~~ -
probe.c:937:9: warning: variable 'mbios' set but not used [-Wunused-but-set-variable] 937 | int mbios[BD_MAX_HARD]; | ^~~~~ -
probe.c:1154:33: warning: variable 'valid' set but not used [-Wunused-but-set-variable] 1154 | int uniq[MAX_BIOS_DEVICES], valid[MAX_BIOS_DEVICES]; | ^~~~~ -
probe.c:1154:9: warning: variable 'uniq' set but not used [-Wunused-but-set-variable] 1154 | int uniq[MAX_BIOS_DEVICES], valid[MAX_BIOS_DEVICES]; | ^~~~ -
edit.c:108:31: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] 108 | bmh->sizeImageData = *(int*)(fh->size) - *(int*)(fh->offsetToBits); | ^~~~~~~~~~~~~~~~ -
edit.c:108:51: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] 108 | bmh->sizeImageData = *(int*)(fh->size) - *(int*)(fh->offsetToBits); | ^~~~~~~~~~~~~~~~~~~~~~~~ -
edit.c:128:10: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] 128 | if (*(int*)(fh->offsetToBits) == sizeof(BITMAPFILEHEADER) + | ^~~~~~~~~~~~~~~~~~~~~~~~ -
edit.c:136:10: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] 136 | *(int*)(lh->size) = size; | ^~~~~~~~~~~~~~~~ -
edit.c:174:6: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] 174 | *(int*)(fh->offsetToBits) = n = sizeof(BITMAPFILEHEADER) + | ^~~~~~~~~~~~~~~~~~~~~~~~ -
edit.c:177:6: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] 177 | *(int*)(fh->size) = total + n; | ^~~~~~~~~~~~~~~~ -
edit.c:309:9: warning: variable 'n' set but not used [-Wunused-but-set-variable] 309 | int n; | ^ -
edit.c:159:5: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] 159 | write(fd, fh, sizeof(*fh)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ -
edit.c:160:5: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] 160 | write(fd, bmh, sizeof(*bmh)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
edit.c:161:5: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] 161 | write(fd, palette, npalette*sizeof(palette[0])); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
edit.c:162:5: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] 162 | write(fd, lh, sizeof(*lh)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ -
edit.c:179:5: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] 179 | write(fd, fh, sizeof(*fh)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ -
edit.c:180:5: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] 180 | write(fd, bmh, sizeof(*bmh)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~