projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5a23f6b
)
ttn: Whitelist from -Werror=declaration-after-statement.
author
Jose Fonseca
<jfonseca@vmware.com>
Wed, 2 Dec 2015 17:54:45 +0000
(17:54 +0000)
committer
Jose Fonseca
<jfonseca@vmware.com>
Thu, 3 Dec 2015 22:00:49 +0000
(22:00 +0000)
nir is the exception among gallium/auxiliary -- we don't need to compile
it with MSVC2008 yet. And this enables us to use
-Werror=declaration-after-statement in the next commit as we should,
without complicated fixes to tgsi_to_nir module.
Trvial. Tested with GCC and Clang.
src/gallium/auxiliary/nir/tgsi_to_nir.c
patch
|
blob
|
history
diff --git
a/src/gallium/auxiliary/nir/tgsi_to_nir.c
b/src/gallium/auxiliary/nir/tgsi_to_nir.c
index 86c2ffadbc8c9cab815bd5559c6d901b31bd8581..5fef5423f82811d02821e0ddde6a07018df6daaa 100644
(file)
--- a/
src/gallium/auxiliary/nir/tgsi_to_nir.c
+++ b/
src/gallium/auxiliary/nir/tgsi_to_nir.c
@@
-22,6
+22,10
@@
* IN THE SOFTWARE.
*/
+#ifdef __GNUC__
+#pragma GCC diagnostic ignored "-Wdeclaration-after-statement"
+#endif
+
#include "util/ralloc.h"
#include "glsl/nir/nir.h"
#include "glsl/nir/nir_control_flow.h"