Patchwork [v3,01/11,trivial] Fix a compiler warning

login
register
mail settings
Submitter Lluís Vilanova
Date Feb. 10, 2012, 11:48 a.m.
Message ID <20120210114855.5104.50342.stgit@ginnungagap.bsc.es>
Download mbox | patch
Permalink /patch/140579/
State New
Headers show

Comments

Lluís Vilanova - Feb. 10, 2012, 11:48 a.m.
Signed-off-by: Lluís Vilanova <vilanova@ac.upc.edu>
---
 scripts/tracetool.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Patch

diff --git a/scripts/tracetool.py b/scripts/tracetool.py
index 6874f66..f0d7e1e 100755
--- a/scripts/tracetool.py
+++ b/scripts/tracetool.py
@@ -183,7 +183,7 @@  def simple_c(events):
         argc = event.argc
         print '''void trace_%(name)s(%(args)s)
 {
-    unsigned int tbuf_idx, rec_off;
+    unsigned int tbuf_idx, rec_off __attribute__((unused));
     uint64_t var64 __attribute__ ((unused));
     uint64_t pvar64 __attribute__ ((unused));
     uint32_t slen __attribute__ ((unused));