提交 0caf448b 编写于 作者: B Blue Swirl

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: NBlue Swirl <blauwirbel@gmail.com>
上级 00aa0040
...@@ -119,7 +119,7 @@ static void *writeout_thread(void *opaque) ...@@ -119,7 +119,7 @@ static void *writeout_thread(void *opaque)
TraceRecord record; TraceRecord record;
unsigned int writeout_idx = 0; unsigned int writeout_idx = 0;
unsigned int num_available, idx; unsigned int num_available, idx;
size_t unused; size_t unused __attribute__ ((unused));
for (;;) { for (;;) {
wait_for_trace_records_available(); wait_for_trace_records_available();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册