CC qemu-nbd.o CC qemu-tool.o CC osdep.o CC cutils.o CC qemu-malloc.o CC block-cow.o CC block-qcow.o CC aes.o CC block-vmdk.o CC block-cloop.o CC block-dmg.o CC block-bochs.o CC block-vpc.o CC block-vvfat.o /home/kashyapc/tinker-space/qemu/block-vpc.c: In function ‘vpc_create’: /home/kashyapc/tinker-space/qemu/block-vpc.c:507:5: warning: ‘strncpy’ output truncated before terminating nul copying 8 bytes from a string of the same length [-Wstringop-truncation] strncpy(footer->creator, "conectix", 8); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/kashyapc/tinker-space/qemu/block-vpc.c:509:5: warning: ‘strncpy’ output truncated before terminating nul copying 4 bytes from a string of the same length [-Wstringop-truncation] strncpy(footer->creator_app, "qemu", 4); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/kashyapc/tinker-space/qemu/block-vpc.c:510:5: warning: ‘strncpy’ output truncated before terminating nul copying 4 bytes from a string of the same length [-Wstringop-truncation] strncpy(footer->creator_os, "Wi2k", 4); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/kashyapc/tinker-space/qemu/block-vpc.c:559:5: warning: ‘strncpy’ output truncated before terminating nul copying 8 bytes from a string of the same length [-Wstringop-truncation] strncpy(dyndisk_header->magic, "cxsparse", 8); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ CC block-qcow2.o CC block-parallels.o CC block-nbd.o /home/kashyapc/tinker-space/qemu/block-qcow2.c: In function ‘count_contiguous_clusters’: /home/kashyapc/tinker-space/qemu/block-vvfat.c: In function ‘fat_chksum’: /home/kashyapc/tinker-space/qemu/block-vvfat.c:514:33: warning: iteration 8 invokes undefined behavior [-Waggressive-loop-optimizations] +(unsigned char)entry->name[i]; ~~~~~~~~~~~^~~ /home/kashyapc/tinker-space/qemu/block-vvfat.c:512:5: note: within this loop for(i=0;i<11;i++) ^~~ /home/kashyapc/tinker-space/qemu/block-qcow2.c:616:5: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation] for (i = start; i < start + nb_clusters; i++) ^~~ /home/kashyapc/tinker-space/qemu/block-qcow2.c:620:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’ return (i - start); ^~~~~~ CC nbd.o CC block.o CC aio.o CC posix-aio-compat.o CC block-raw-posix.o CC qemu-img.o CC readline.o CC console.o CC irq.o In function ‘term_hist_add.constprop’, inlined from ‘readline_handle_byte’ at /home/kashyapc/tinker-space/qemu/readline.c:389:17: /home/kashyapc/tinker-space/qemu/readline.c:282:2: warning: ‘memcpy’ accessing 504 bytes at offsets 0 and 8 overlaps 496 bytes at offset 8 [-Wrestrict] memcpy(term_history, &term_history[1], ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ (TERM_MAX_CMDS - 1) * sizeof(char *)); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ CC i2c.o CC smbus.o CC smbus_eeprom.o CC max7310.o CC max111x.o CC wm8750.o CC ssd0303.o /home/kashyapc/tinker-space/qemu/hw/wm8750.c: In function ‘wm8750_in_load’: /home/kashyapc/tinker-space/qemu/hw/wm8750.c:58:9: warning: variable ‘acquired’ set but not used [-Wunused-but-set-variable] int acquired; ^~~~~~~~ /home/kashyapc/tinker-space/qemu/hw/wm8750.c: In function ‘wm8750_set_format’: /home/kashyapc/tinker-space/qemu/hw/wm8750.c:175:24: warning: variable ‘monoout_fmt’ set but not used [-Wunused-but-set-variable] struct audsettings monoout_fmt; ^~~~~~~~~~~ CC ssd0323.o CC ads7846.o CC stellaris_input.o CC twl92230.o CC tmp105.o CC lm832x.o CC scsi-disk.o CC cdrom.o /home/kashyapc/tinker-space/qemu/hw/scsi-disk.c: In function ‘scsi_send_command’: /home/kashyapc/tinker-space/qemu/hw/scsi-disk.c:352:9: warning: variable ‘cmdlen’ set but not used [-Wunused-but-set-variable] int cmdlen; ^~~~~~ In file included from /home/kashyapc/tinker-space/qemu/hw/lm832x.c:22: /home/kashyapc/tinker-space/qemu/hw/lm832x.c: In function ‘lm_kbd_load’: /home/kashyapc/tinker-space/qemu/hw/hw.h:110:9: warning: iteration 256 invokes undefined behavior [-Waggressive-loop-optimizations] *pv = qemu_get_be16(f); ~~~~^~~~~~~~~~~~~~~~~~ /home/kashyapc/tinker-space/qemu/hw/lm832x.c:478:5: note: within this loop for (i = 0; i < sizeof(s->pwm.file); i ++) ^~~ In file included from /home/kashyapc/tinker-space/qemu/hw/lm832x.c:22: /home/kashyapc/tinker-space/qemu/hw/lm832x.c: In function ‘lm_kbd_save’: /home/kashyapc/tinker-space/qemu/hw/hw.h:90:22: warning: iteration 256 invokes undefined behavior [-Waggressive-loop-optimizations] qemu_put_be16(f, *pv); ^~~ /home/kashyapc/tinker-space/qemu/hw/lm832x.c:442:5: note: within this loop for (i = 0; i < sizeof(s->pwm.file); i ++) ^~~ CC scsi-generic.o CC usb.o CC usb-hub.o /home/kashyapc/tinker-space/qemu/hw/usb-hub.c: In function ‘usb_hub_handle_control’: /home/kashyapc/tinker-space/qemu/hw/usb-hub.c:369:24: warning: variable ‘dev’ set but not used [-Wunused-but-set-variable] USBDevice *dev; ^~~ CC usb-linux.o CC usb-hid.o CC usb-msd.o /home/kashyapc/tinker-space/qemu/usb-linux.c: In function ‘usb_host_claim_interfaces’: /home/kashyapc/tinker-space/qemu/usb-linux.c:310:35: warning: variable ‘nb_configurations’ set but not used [-Wunused-but-set-variable] int interface, nb_interfaces, nb_configurations; ^~~~~~~~~~~~~~~~~ CC usb-wacom.o CC usb-serial.o CC usb-net.o CC sd.o /home/kashyapc/tinker-space/qemu/hw/usb-net.c: In function ‘rndis_parse’: /home/kashyapc/tinker-space/qemu/hw/usb-net.c:980:24: warning: variable ‘msg_length’ set but not used [-Wunused-but-set-variable] uint32_t msg_type, msg_length; ^~~~~~~~~~ /home/kashyapc/tinker-space/qemu/hw/usb-net.c: In function ‘usbnet_receive’: /home/kashyapc/tinker-space/qemu/hw/usb-net.c:1379:29: warning: comparison of constant ‘2’ with boolean expression is always false [-Wbool-compare] if (!s->rndis_state == RNDIS_DATA_INITIALIZED) ^~ /home/kashyapc/tinker-space/qemu/hw/usb-net.c:1379:29: warning: logical not is only applied to the left hand side of comparison [-Wlogical-not-parentheses] /home/kashyapc/tinker-space/qemu/hw/usb-net.c:1379:13: note: add parentheses around left hand side expression to silence this warning if (!s->rndis_state == RNDIS_DATA_INITIALIZED) ^~~~~~~~~~~~~~~ ( ) /home/kashyapc/tinker-space/qemu/hw/usb-net.c: In function ‘usbnet_can_receive’: /home/kashyapc/tinker-space/qemu/hw/usb-net.c:1412:37: warning: comparison of constant ‘2’ with boolean expression is always false [-Wbool-compare] if (s->rndis && !s->rndis_state == RNDIS_DATA_INITIALIZED) ^~ /home/kashyapc/tinker-space/qemu/hw/usb-net.c:1412:37: warning: logical not is only applied to the left hand side of comparison [-Wlogical-not-parentheses] /home/kashyapc/tinker-space/qemu/hw/usb-net.c:1412:21: note: add parentheses around left hand side expression to silence this warning if (s->rndis && !s->rndis_state == RNDIS_DATA_INITIALIZED) ^~~~~~~~~~~~~~~ ( ) CC ssi-sd.o /home/kashyapc/tinker-space/qemu/hw/sd.c: In function ‘sd_app_command’: CC bt.o /home/kashyapc/tinker-space/qemu/hw/sd.c:1119:14: warning: variable ‘rca’ set but not used [-Wunused-but-set-variable] uint32_t rca; ^~~ At top level: /home/kashyapc/tinker-space/qemu/hw/sd.c:144:28: warning: ‘sd_acmd_type’ defined but not used [-Wunused-const-variable=] static const sd_cmd_type_t sd_acmd_type[64] = { ^~~~~~~~~~~~ CC bt-host.o /home/kashyapc/tinker-space/qemu/hw/usb-serial.c: In function ‘usb_serial_init’: /home/kashyapc/tinker-space/qemu/hw/usb-serial.c:576:76: warning: ‘)’ directive output may be truncated writing 1 byte into a region of size between 0 and 16 [-Wformat-truncation=] snprintf(s->dev.devname, sizeof(s->dev.devname), "QEMU USB Serial(%.16s)", ^ /home/kashyapc/tinker-space/qemu/hw/usb-serial.c:576:5: note: ‘snprintf’ output between 18 and 34 bytes into a destination of size 32 snprintf(s->dev.devname, sizeof(s->dev.devname), "QEMU USB Serial(%.16s)", ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ filename); ~~~~~~~~~ CC bt-vhci.o CC bt-l2cap.o CC bt-sdp.o CC bt-hci.o CC bt-hid.o /home/kashyapc/tinker-space/qemu/hw/bt-sdp.c: In function ‘sdp_svc_search’: /home/kashyapc/tinker-space/qemu/hw/bt-sdp.c:175:5: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] if (len > 1); ^~ /home/kashyapc/tinker-space/qemu/hw/bt-sdp.c:176:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ return -SDP_INVALID_SYNTAX; ^~~~~~ /home/kashyapc/tinker-space/qemu/hw/bt-l2cap.c: In function ‘l2cap_iframe_in’: /home/kashyapc/tinker-space/qemu/hw/bt-l2cap.c:1001:9: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] if (len != 4) ^~ /home/kashyapc/tinker-space/qemu/hw/bt-l2cap.c:1003:13: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ return; ^~~~~~ /home/kashyapc/tinker-space/qemu/hw/bt-hci.c: In function ‘bt_hci_version_req’: /home/kashyapc/tinker-space/qemu/hw/bt-hci.c:995:25: warning: variable ‘slave’ set but not used [-Wunused-but-set-variable] struct bt_device_s *slave; ^~~~~ /home/kashyapc/tinker-space/qemu/hw/bt-hci.c: In function ‘bt_submit_sco’: /home/kashyapc/tinker-space/qemu/hw/bt-hci.c:2081:23: warning: variable ‘link’ set but not used [-Wunused-but-set-variable] struct bt_link_s *link; ^~~~ CC usb-bt.o CC buffered_file.o CC migration.o CC migration-tcp.o CC net.o CC qemu-sockets.o CC qemu-char.o CC net-checksum.o CC savevm.o In file included from /home/kashyapc/tinker-space/qemu/net.c:104: /home/kashyapc/tinker-space/qemu/slirp/libslirp.h:8:1: error: invalid use of ‘restrict’ void slirp_init(int restrict, char *special_ip); ^~~~ CC cache-utils.o /home/kashyapc/tinker-space/qemu/slirp/libslirp.h:8:1: error: invalid use of ‘restrict’ make: *** [/home/kashyapc/tinker-space/qemu/rules.mak:3: net.o] Error 1 make: *** Waiting for unfinished jobs.... In function ‘bt_hci_event_complete_read_local_name’, inlined from ‘bt_submit_hci’ at /home/kashyapc/tinker-space/qemu/hw/bt-hci.c:1825:9: /home/kashyapc/tinker-space/qemu/hw/bt-hci.c:1390:9: warning: ‘strncpy’ specified bound 248 equals destination size [-Wstringop-truncation] strncpy(params.name, hci->device.lmp_name, sizeof(params.name)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In function ‘bt_hci_event’, inlined from ‘bt_hci_event_encrypt_change’ at /home/kashyapc/tinker-space/qemu/hw/bt-hci.c:1321:5, inlined from ‘bt_submit_hci’ at /home/kashyapc/tinker-space/qemu/hw/bt-hci.c:1658:13: /home/kashyapc/tinker-space/qemu/hw/bt-hci.c:467:9: warning: ‘memcpy’ forming offset 5 is out of the bounds [0, 4] of object ‘params’ with type ‘evt_encrypt_change’ {aka ‘struct ’} [-Warray-bounds] memcpy(packet, params, len); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/kashyapc/tinker-space/qemu/hw/bt-hci.c: In function ‘bt_submit_hci’: /home/kashyapc/tinker-space/qemu/hw/bt-hci.c:1315:24: note: ‘params’ declared here evt_encrypt_change params = { ^~~~~~