160 unused but set variables in QEMU

Bug #621780 reported by Austin English
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
QEMU
Fix Released
Undecided
Unassigned

Bug Description

I use gcc from SVN on my desktop:
austin@midna:~/gits/qemu$ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/local/libexec/gcc/x86_64-unknown-linux-gnu/4.6.0/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: ./configure --enable-languages=c,c++
Thread model: posix
gcc version 4.6.0 20100726 (experimental) (GCC)

which enables a new warning, 'unused-but-set'. Normally, this wouldn't be a big deal, just an annoyance, but since QEMU builds with -Werror, it causes problems.

Easy enough to workaround with 'make -k'. To make it a bit easier on you, I ran 'make -k ; make -k &> make.txt', and attached that here, so you can easily find the 160 cases that should be fixed in qemu without needing gcc 4.6.

Revision history for this message
Austin English (austinenglish) wrote :
Revision history for this message
Austin English (austinenglish) wrote :

Forgot to add, this is with git head, commit cc597832119dd1504f1c1536bb5f903d8970af2a.

Revision history for this message
Peter Maydell (pmaydell) wrote :

We fixed all our unused-but-set compiler warnings some time before the release of qemu 1.0, so I'm closing this bug as fixed.

Changed in qemu:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.