summaryrefslogtreecommitdiff
path: root/simpletrace.c
diff options
context:
space:
mode:
authorBlue Swirl <blauwirbel@gmail.com>2011-07-23 21:21:14 +0000
committerBlue Swirl <blauwirbel@gmail.com>2011-07-25 14:40:18 +0000
commit0caf448b8062b6e186f7bf12dbb27c3ab4ca6136 (patch)
treee999c96427ed311005adcf5eca919491e50106c1 /simpletrace.c
parent00aa0040e8b8ec45a75be4e8926a84b82cc75838 (diff)
downloadqemu-0caf448b8062b6e186f7bf12dbb27c3ab4ca6136.tar.gz
qemu-0caf448b8062b6e186f7bf12dbb27c3ab4ca6136.tar.bz2
qemu-0caf448b8062b6e186f7bf12dbb27c3ab4ca6136.zip
simpletrace: suppress a warning from unused variable
Avoid this warning: CC simpletrace.o /src/qemu/simpletrace.c: In function 'writeout_thread': /src/qemu/simpletrace.c:122:12: error: variable 'unused' set but not used [-Werror=unused-but-set-variable] by adding GCC attribute unused to the variable. Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'simpletrace.c')
-rw-r--r--simpletrace.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/simpletrace.c b/simpletrace.c
index f1dbb5e502..de355e9675 100644
--- a/simpletrace.c
+++ b/simpletrace.c
@@ -119,7 +119,7 @@ static void *writeout_thread(void *opaque)
TraceRecord record;
unsigned int writeout_idx = 0;
unsigned int num_available, idx;
- size_t unused;
+ size_t unused __attribute__ ((unused));
for (;;) {
wait_for_trace_records_available();