aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/nir
diff options
context:
space:
mode:
authorJose Fonseca <[email protected]>2015-12-02 17:54:45 +0000
committerJose Fonseca <[email protected]>2015-12-03 22:00:49 +0000
commit071af9a511f1a6233eaab726f28efb96a86696d8 (patch)
tree81f8fe77d2f4d301254eac1d0ec3813ab059f01a /src/gallium/auxiliary/nir
parent5a23f6bd8d8d26e0e75801df44cc228f15f9768e (diff)
ttn: Whitelist from -Werror=declaration-after-statement.
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.
Diffstat (limited to 'src/gallium/auxiliary/nir')
-rw-r--r--src/gallium/auxiliary/nir/tgsi_to_nir.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/nir/tgsi_to_nir.c b/src/gallium/auxiliary/nir/tgsi_to_nir.c
index 86c2ffadbc8..5fef5423f82 100644
--- 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"