Snippets for bochs 3.1 from Fedora aarch64
Sourced from https://kojipkgs.fedoraproject.org/packages/bochs/3.1/1.fc46/data/logs/aarch64/build.log.
-
netmod.cc:235:13: warning: ignoring return value of ‘char* getcwd(char*, size_t)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 235 | getcwd(filename, BX_PATHNAME_LEN); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ -
hdimage.cc:1777:10: warning: ignoring return value of ‘ssize_t write(int, const void*, size_t)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 1777 | ::write(fd, &header, dtoh32(header.standard.header)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
hdimage.cc:1781:10: warning: ignoring return value of ‘ssize_t write(int, const void*, size_t)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 1781 | ::write(fd, catalog, dtoh32(header.specific.catalog) * sizeof (Bit32u)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
hdimage.cc:2026:14: warning: ignoring return value of ‘ssize_t write(int, const void*, size_t)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 2026 | ::write(fd, zerobuffer, 512); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~ -
hdimage.cc:2030:14: warning: ignoring return value of ‘ssize_t write(int, const void*, size_t)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 2030 | ::write(fd, zerobuffer, 512); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~ -
keymap.cc:130:28: warning: ‘/keymaps/’ directive writing 9 bytes into a region of size between 1 and 512 [-Wformat-overflow=] 130 | sprintf(keymap_file, "%s" DIRECTORY_SEPARATOR "keymaps" DIRECTORY_SEPARATOR "%s-pc-%s.map", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
init.cc:210:16: warning: ‘new’ of type ‘bxICache_c’ with extended alignment 64 [-Waligned-new=] 210 | iCache = new bxICache_c; | ^~~~~~~~~~ -
gui.cc:635:10: warning: ignoring return value of ‘ssize_t write(int, const void*, size_t)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 635 | write(fd, bmp_header, 54); | ~~~~~^~~~~~~~~~~~~~~~~~~~ -
gui.cc:637:12: warning: ignoring return value of ‘ssize_t write(int, const void*, size_t)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 637 | write(fd, BX_GUI_THIS palette, 256 * 4); | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
gui.cc:669:12: warning: ignoring return value of ‘ssize_t write(int, const void*, size_t)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 669 | write(fd, row_buffer, rlen); | ~~~~~^~~~~~~~~~~~~~~~~~~~~~ -
main.cc:1371:31: warning: ‘new’ of type ‘BX_CPU_C’ with extended alignment 32 [-Waligned-new=] 1371 | BX_CPU(i) = new BX_CPU_C(i); | ^ -
misc_mem.cc:261:11: warning: ignoring return value of ‘ssize_t read(int, void*, size_t)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 261 | read(fd, &BX_MEM_THIS rom[BIOSROMSZ - offset], size); | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
misc_mem.cc:287:12: warning: ignoring return value of ‘ssize_t write(int, const void*, size_t)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 287 | write(fd, &BX_MEM_THIS rom[BIOSROMSZ - offset], size); | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
vmware4.cc:341:12: warning: ignoring return value of ‘ssize_t write(int, const void*, size_t)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 341 | ::write(file_descriptor, tlb, (unsigned)header.tlb_size_sectors * SECTOR_SIZE); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
vmware4.cc:350:11: warning: ignoring return value of ‘ssize_t read(int, void*, size_t)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 350 | ::read(file_descriptor, tlb, (unsigned)header.tlb_size_sectors * SECTOR_SIZE); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
vmware4.cc:366:10: warning: ignoring return value of ‘ssize_t write(int, const void*, size_t)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 366 | ::write(file_descriptor, tlb, (unsigned)header.tlb_size_sectors * SECTOR_SIZE); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
config.cc:775:17: warning: ‘/BIOS-bochs-latest’ directive writing 18 bytes into a region of size between 1 and 512 [-Wformat-overflow=] 775 | sprintf(name, "%s" DIRECTORY_SEPARATOR "BIOS-bochs-latest", bxshare); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
config.cc:804:17: warning: ‘/VGABIOS-lgpl-latest.bin’ directive writing 24 bytes into a region of size between 1 and 512 [-Wformat-overflow=] 804 | sprintf(name, "%s" DIRECTORY_SEPARATOR "VGABIOS-lgpl-latest.bin", bxshare); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
vpc.h:48:36: warning: array subscript ‘struct vhd_dyndisk_header_t[0]’ is partly outside array bounds of ‘Bit8u[512]’ [-Warray-bounds=] 48 | #define be32_to_cpu(val) bx_bswap32(val)
-
vpc.h:49:36: warning: array subscript ‘struct vhd_dyndisk_header_t[0]’ is partly outside array bounds of ‘Bit8u[512]’ [-Warray-bounds=] 49 | #define be64_to_cpu(val) bx_bswap64(val)
-
vvfat.cc:1550:14: warning: ignoring return value of ‘ssize_t write(int, const void*, size_t)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 1550 | ::write(fd, buffer, csize); | ~~~~~~~^~~~~~~~~~~~~~~~~~~ -
vvfat.cc:1553:14: warning: ignoring return value of ‘ssize_t write(int, const void*, size_t)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 1553 | ::write(fd, buffer, fsize); | ~~~~~~~^~~~~~~~~~~~~~~~~~~ -
serial.cc:1486:16: warning: ignoring return value of ‘ssize_t write(int, const void*, size_t)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 1486 | ::write(BX_SER_THIS s[port].tty_id, (bx_ptr_t) & BX_SER_THIS s[port].tsrbuffer, 1); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
serial.cc:1643:24: warning: ignoring return value of ‘ssize_t read(int, void*, size_t)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 1643 | (void) ::read(BX_SER_THIS s[port].tty_id, &chbuf, 1); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
./iodev/hdimage/hdimage.cc:1777:10: warning: ignoring return value of ‘ssize_t write(int, const void*, size_t)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 1777 | ::write(fd, &header, dtoh32(header.standard.header)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
./iodev/hdimage/hdimage.cc:1781:10: warning: ignoring return value of ‘ssize_t write(int, const void*, size_t)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 1781 | ::write(fd, catalog, dtoh32(header.specific.catalog) * sizeof (Bit32u)); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
./iodev/hdimage/hdimage.cc:2026:14: warning: ignoring return value of ‘ssize_t write(int, const void*, size_t)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 2026 | ::write(fd, zerobuffer, 512); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~ -
./iodev/hdimage/hdimage.cc:2030:14: warning: ignoring return value of ‘ssize_t write(int, const void*, size_t)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 2030 | ::write(fd, zerobuffer, 512); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~ -
./iodev/hdimage/vmware4.cc:341:12: warning: ignoring return value of ‘ssize_t write(int, const void*, size_t)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 341 | ::write(file_descriptor, tlb, (unsigned)header.tlb_size_sectors * SECTOR_SIZE); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
./iodev/hdimage/vmware4.cc:350:11: warning: ignoring return value of ‘ssize_t read(int, void*, size_t)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 350 | ::read(file_descriptor, tlb, (unsigned)header.tlb_size_sectors * SECTOR_SIZE); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
./iodev/hdimage/vmware4.cc:366:10: warning: ignoring return value of ‘ssize_t write(int, const void*, size_t)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 366 | ::write(file_descriptor, tlb, (unsigned)header.tlb_size_sectors * SECTOR_SIZE); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
./iodev/hdimage/vpc.h:48:36: warning: array subscript ‘struct vhd_dyndisk_header_t[0]’ is partly outside array bounds of ‘Bit8u[512]’ [-Warray-bounds=] 48 | #define be32_to_cpu(val) bx_bswap32(val)
-
./iodev/hdimage/vpc.h:49:36: warning: array subscript ‘struct vhd_dyndisk_header_t[0]’ is partly outside array bounds of ‘Bit8u[512]’ [-Warray-bounds=] 49 | #define be64_to_cpu(val) bx_bswap64(val)
-
./iodev/hdimage/vhdx.cc:144:38: warning: variable ‘active_header’ set but not used [-Wunused-but-set-variable=] 144 | vhdx_header_t *header1, *header2, *active_header; | ^~~~~~~~~~~~~ -
./iodev/network/netutil.cc:1391:16: warning: ignoring return value of ‘ssize_t write(int, const void*, size_t)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 1391 | write(fs->data_xfer_fd, data, data_len); | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
./iodev/network/netutil.cc:1596:9: warning: ignoring return value of ‘ssize_t read(int, void*, size_t)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 1596 | read(fs->data_xfer_fd, buffer, data_len); | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
./iodev/network/netutil.cc:1685:18: warning: ignoring return value of ‘ssize_t write(int, const void*, size_t)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 1685 | write(fd, linebuf, strlen(linebuf)); | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
./iodev/network/netutil.cc:2245:30: warning: ‘%s’ directive writing up to 511 bytes into a region of size between 0 and 511 [-Wformat-overflow=] 2245 | sprintf(s->filename, "%s/%s", tpath, tname); | ^~ -
slirp/tftp.cc:607:18: warning: ignoring return value of ‘ssize_t write(int, const void*, size_t)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 607 | write(spt->fd, tp->x.tp_data.tp_buf, nobytes); | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
netutil.cc:1391:16: warning: ignoring return value of ‘ssize_t write(int, const void*, size_t)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 1391 | write(fs->data_xfer_fd, data, data_len); | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
netutil.cc:1596:9: warning: ignoring return value of ‘ssize_t read(int, void*, size_t)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 1596 | read(fs->data_xfer_fd, buffer, data_len); | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
netutil.cc:1685:18: warning: ignoring return value of ‘ssize_t write(int, const void*, size_t)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 1685 | write(fd, linebuf, strlen(linebuf)); | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
netutil.cc:2245:30: warning: ‘%s’ directive writing up to 511 bytes into a region of size between 0 and 511 [-Wformat-overflow=] 2245 | sprintf(s->filename, "%s/%s", tpath, tname); | ^~ -
debugstuff.cc:373:14: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 3 has type ‘bx_address’ {aka ‘long unsigned int’} [-Wformat=] 373 | BX_INFO(("| CR4=0x%08x: %s", cr4, stringify_CR4(cr4, s))); | ^~~~~~~~~~~~~~~~~~ ~~~ | | | bx_address {aka long unsigned int} -
iodev/network/slirp/tftp.h:45:8: warning: type 'struct tftp_session' violates the C++ One Definition Rule [-Wodr] 45 | struct tftp_session { | ^