Mesa (master): mesa: remove MSVC warning pragmas

Brian Paul brianp at kemper.freedesktop.org
Wed Mar 18 15:50:19 UTC 2015


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

Author: Brian Paul <brianp at vmware.com>
Date:   Tue Mar 17 11:57:34 2015 -0600

mesa: remove MSVC warning pragmas

Removing this block of pragmas doesn't seem to increase the number of
warning generated by MSVC.  Other than signed/unsigned comparison warnings
there's very few other warnings nowadays.

Acked-by: Matt Turner <mattst88 at gmail.com>

---

 src/mesa/main/compiler.h |   20 --------------------
 1 file changed, 20 deletions(-)

diff --git a/src/mesa/main/compiler.h b/src/mesa/main/compiler.h
index 5c60391..55152fd 100644
--- a/src/mesa/main/compiler.h
+++ b/src/mesa/main/compiler.h
@@ -60,26 +60,6 @@ extern "C" {
 #endif
 
 
-/**
- * Disable assorted warnings
- */
-#if defined(_WIN32) && !defined(__CYGWIN__)
-#  if !defined(__GNUC__) /* mingw environment */
-#    pragma warning( disable : 4068 ) /* unknown pragma */
-#    pragma warning( disable : 4710 ) /* function 'foo' not inlined */
-#    pragma warning( disable : 4711 ) /* function 'foo' selected for automatic inline expansion */
-#    pragma warning( disable : 4127 ) /* conditional expression is constant */
-#    if defined(MESA_MINWARN)
-#      pragma warning( disable : 4244 ) /* '=' : conversion from 'const double ' to 'float ', possible loss of data */
-#      pragma warning( disable : 4018 ) /* '<' : signed/unsigned mismatch */
-#      pragma warning( disable : 4305 ) /* '=' : truncation from 'const double ' to 'float ' */
-#      pragma warning( disable : 4550 ) /* 'function' undefined; assuming extern returning int */
-#      pragma warning( disable : 4761 ) /* integral size mismatch in argument; conversion supplied */
-#    endif
-#  endif
-#endif
-
-
 /* XXX: Use standard `__func__` instead */
 #ifndef __FUNCTION__
 #  define __FUNCTION__ __func__




More information about the mesa-commit mailing list