Module: Mesa
Branch: master
Commit: 071af9a511f1a6233eaab726f28efb96a86696d8
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=071af9a511f1a6233eaab726f28efb96a86696d8

Author: Jose Fonseca <[email protected]>
Date:   Wed Dec  2 17:54:45 2015 +0000

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.

---

 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"

_______________________________________________
mesa-commit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to