aboutsummaryrefslogtreecommitdiffstats
path: root/tools/process-x11-xcb.pl
diff options
context:
space:
mode:
authorJeff Morriss <jeff.morriss.ws@gmail.com>2013-11-13 03:20:37 +0000
committerJeff Morriss <jeff.morriss.ws@gmail.com>2013-11-13 03:20:37 +0000
commit8893d3d960e33acb2d3d56a2b5984e4de36fc659 (patch)
treeb92de045452f78d760eb29eacc91476b9131e680 /tools/process-x11-xcb.pl
parent78f87575600bfc85f44235eadeada371073ec692 (diff)
Use a gcc pragma to stop the (pages of) warnings coming out of
x11-extensions-implementation.h . This change was manually applied to the .h file as I can't currently rebuild the X11 dissector. svn path=/trunk/; revision=53298
Diffstat (limited to 'tools/process-x11-xcb.pl')
-rwxr-xr-xtools/process-x11-xcb.pl5
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/process-x11-xcb.pl b/tools/process-x11-xcb.pl
index d29a6f1aad..6a648fc8cf 100755
--- a/tools/process-x11-xcb.pl
+++ b/tools/process-x11-xcb.pl
@@ -125,7 +125,7 @@ my %struct = # Not reset; contains structures already defined.
# structures defined by xv, but never used (bug in xcb?)
Image => 1,
-
+
# structures defined by xkb, but never used (bug in xcb?)
CountedString8 => 1,
);
@@ -494,7 +494,7 @@ sub register_element($$$;$)
my $ft = $info->{'type'} // 'FT_NONE';
my $base = $info->{'base'} // 'BASE_NONE';
my $vals = 'NULL';
-
+
my $enum = $e->att('enum') // $e->att('altenum');
if (defined $enum) {
my $enumname = dump_enum_values($enum_name{$enum});
@@ -1383,6 +1383,7 @@ if (-e "$mesadir/gl_API.xml") {
or die ("Cannot open x11-glx-render-enum.h for writing\n");
add_generated_header($enum, 'mesa');
print $enum "static const value_string mesa_enum[] = {\n";
+ print $impl '#pragma GCC diagnostic ignored "-Wunused-but-set-variable"'."\n\n";
print $impl '#include "x11-glx-render-enum.h"'."\n\n";
print("Mesa glRender:\n");