forked from osmocom/wireshark
Wrap GCC pragma in an #ifdef to make it compile when we're not using GCC.
Again, change manually applied to the .h file. svn path=/trunk/; revision=53299
This commit is contained in:
parent
8893d3d960
commit
38eac2f54f
|
@ -25,7 +25,9 @@
|
|||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
|
||||
#if defined(__GNUC__)
|
||||
#pragma GCC diagnostic ignored "-Wunused-but-set-variable"
|
||||
#endif
|
||||
|
||||
#include "x11-glx-render-enum.h"
|
||||
|
||||
|
|
|
@ -1383,7 +1383,9 @@ 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 "#if defined(__GNUC__)\n";
|
||||
print $impl '#pragma GCC diagnostic ignored "-Wunused-but-set-variable"'."\n";
|
||||
print $impl "#endif\n\n";
|
||||
print $impl '#include "x11-glx-render-enum.h"'."\n\n";
|
||||
|
||||
print("Mesa glRender:\n");
|
||||
|
|
Loading…
Reference in New Issue