[pypy-svn] r15660 - pypy/dist/pypy/translator/c/src

arigo at codespeak.net arigo at codespeak.net
Fri Aug 5 11:54:13 CEST 2005


Author: arigo
Date: Fri Aug  5 11:54:10 2005
New Revision: 15660

Modified:
   pypy/dist/pypy/translator/c/src/g_include.h
   pypy/dist/pypy/translator/c/src/standalone.h
Log:
(xorAxAx) we can put the warning suppression into the normal
processing path as well; those warnings are not standalone-only.


Modified: pypy/dist/pypy/translator/c/src/g_include.h
==============================================================================
--- pypy/dist/pypy/translator/c/src/g_include.h	(original)
+++ pypy/dist/pypy/translator/c/src/g_include.h	Fri Aug  5 11:54:10 2005
@@ -41,3 +41,9 @@
 #  include "src/main.h"
 #endif
 
+/* suppress a few warnings in the generated code */
+#ifdef MS_WINDOWS
+#  ifdef _MSC_VER
+#    pragma warning(disable: 4033 4102 4101 4716)
+#  endif
+#endif

Modified: pypy/dist/pypy/translator/c/src/standalone.h
==============================================================================
--- pypy/dist/pypy/translator/c/src/standalone.h	(original)
+++ pypy/dist/pypy/translator/c/src/standalone.h	Fri Aug  5 11:54:10 2005
@@ -12,9 +12,3 @@
 
 #define PyObject_Malloc malloc
 #define PyObject_Free   free
-
-#ifdef MS_WINDOWS
-#  ifdef _MSC_VER
-#    pragma warning(disable: 4033 4102 4101 4716) /*suppress a few warnings*/
-#  endif
-#endif



More information about the Pypy-commit mailing list