diff options
author | Gerald Combs <gerald@wireshark.org> | 2013-12-18 20:53:01 +0000 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2013-12-18 20:53:01 +0000 |
commit | 5385c2d5f8ad18ea80fbc1eca9e506109febe35c (patch) | |
tree | 91ac0cce8e81e781750cbcea045704f06711f59c | |
parent | b834b2ae18f4b491cf4cad8dfb5c3f8db6808aa2 (diff) |
Instead of assigning a variable to itself, avoid unused warnings similar
to the Q_UNUSED macro.
svn path=/trunk/; revision=54232
-rwxr-xr-x | tools/process-x11-xcb.pl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/process-x11-xcb.pl b/tools/process-x11-xcb.pl index 7761d87904..148355f9f4 100755 --- a/tools/process-x11-xcb.pl +++ b/tools/process-x11-xcb.pl @@ -394,7 +394,7 @@ eot } else { if (defined($count)) { # Silence compiler until we support variable_param - say $impl " $count = $count; /* Avoid unreferenced warning */"; + say $impl " (void) $count; /* Avoid unreferenced warning, similar to Q_UNUSED */"; } print $impl " $list(tvb, offsetp, t, $regname, (length - $length) / $gltype{$type}{'size'}, byte_order);\n"; } |