Ok, looking at the first example (line 526), I see code that looks like: static inline int ohci_put_iso_td(OHCIState *ohci, uint32_t addr, struct ohci_iso_td *td) { return (put_dwords(ohci, addr, (uint32_t *)td, 4) && put_words(ohci, addr + 16, td->offset, 8)); }
Is that what you see? Because I don't see any variables that are only set. Of course you're using a newer compiler, but I'm still not sure I can see the problem. -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/793317 Title: Large amount of write-only variables Status in QEMU: New Bug description: Whenever I try to compile the source from the git repo, it gets a large number of "set but not used" errors, in files such as: hw/usb_ochi.c (line 526, 1114, and 1108) hw/lsi53c895a.c (line 892) kvm.c (line 973) target-alpha/translate.c (line 1472, 1470) linux-user/syscall.c (line 7062, 3754) exec.c (line 1211) linux-user/linuxload.c (line 60) Really now, why would anyone create so many write-only variables knowing that it's compiled with write-only variables causing errors..? Host: Fedora 15 i686 Gcc: 4.6.0 Guest: None I pulled the code from the git repo earlier today, so I'm pretty sure it did not get fixed in that short timeframe.