Suppress certain GCC warnings in auto-generated code.
- Don't warn for references to deprecated functions in xorg_symbols. - Ignore functions generated by gl_apitemp.py that are never used. Signed-off-by: Jamey Sharp <jamey@minilop.net> Signed-off-by: Keith Packard <keithp@keithp.com>
This commit is contained in:
parent
239435875d
commit
fab74d1081
|
@ -114,10 +114,15 @@ warn(void)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if defined(__GNUC__) && (__GNUC__ > 2)
|
||||||
|
#define possibly_unused __attribute((unused))
|
||||||
|
#else
|
||||||
|
#define possibly_unused
|
||||||
|
#endif
|
||||||
|
|
||||||
#define KEYWORD1 static
|
#define KEYWORD1 static
|
||||||
#define KEYWORD1_ALT static
|
#define KEYWORD1_ALT static
|
||||||
#define KEYWORD2 GLAPIENTRY
|
#define KEYWORD2 GLAPIENTRY possibly_unused
|
||||||
#define NAME(func) NoOp##func
|
#define NAME(func) NoOp##func
|
||||||
|
|
||||||
#define F NULL
|
#define F NULL
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
|
|
||||||
cat > sdksyms.c << EOF
|
cat > sdksyms.c << EOF
|
||||||
/* This file is automatically generated by sdksyms.sh. */
|
/* This file is automatically generated by sdksyms.sh. */
|
||||||
|
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
|
||||||
|
|
||||||
#ifdef HAVE_XORG_CONFIG_H
|
#ifdef HAVE_XORG_CONFIG_H
|
||||||
#include <xorg-config.h>
|
#include <xorg-config.h>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user