Mesa (master): gallium: undef PACKAGE_* macros to silence warnings

Brian Paul brianp at kemper.freedesktop.org
Mon Mar 25 18:31:09 UTC 2013


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

Author: Brian Paul <brianp at vmware.com>
Date:   Mon Mar 25 10:24:01 2013 -0600

gallium: undef PACKAGE_* macros to silence warnings

Reviewed-by: Jose Fonseca <jfonseca at vmware.com>

---

 src/gallium/auxiliary/gallivm/lp_bld_misc.cpp |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp b/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp
index 6a560df..46cdbad 100644
--- a/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp
+++ b/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp
@@ -40,6 +40,14 @@
 #define __STDC_CONSTANT_MACROS
 #endif
 
+// Undef these vars just to silence warnings
+#undef PACKAGE_BUGREPORT
+#undef PACKAGE_NAME
+#undef PACKAGE_STRING
+#undef PACKAGE_TARNAME
+#undef PACKAGE_VERSION
+
+
 #include <stddef.h>
 
 #include <llvm-c/Core.h>




More information about the mesa-commit mailing list