ttn: Whitelist from -Werror=declaration-after-statement.
authorJose Fonseca <jfonseca@vmware.com>
Wed, 2 Dec 2015 17:54:45 +0000 (17:54 +0000)
committerJose 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

index 86c2ffadbc8c9cab815bd5559c6d901b31bd8581..5fef5423f82811d02821e0ddde6a07018df6daaa 100644 (file)
  * 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"