[Mesa-dev] [PATCH 1/2] ttn: Whitelist from -Werror=declaration-after-statement.

Jose Fonseca jfonseca at vmware.com
Wed Dec 2 09:56:40 PST 2015


nir is the exception among gallium/auxiliary -- we don't need to
compile it with MSVC2008 yet.
---
 src/gallium/auxiliary/nir/tgsi_to_nir.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/gallium/auxiliary/nir/tgsi_to_nir.c b/src/gallium/auxiliary/nir/tgsi_to_nir.c
index 86c2ffa..5fef542 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"
-- 
2.5.0



More information about the mesa-dev mailing list