added -Zm400 to DEPCFLAGS to avoid : gunidecomp.h(5846) : fatal error
authorHans Breuer <hans@breuer.org>
Fri, 23 Nov 2001 15:59:30 +0000 (15:59 +0000)
committerHans Breuer <hans@src.gnome.org>
Fri, 23 Nov 2001 15:59:30 +0000 (15:59 +0000)
2001-11-23  Hans Breuer  <hans@breuer.org>

* glib/makefile.msc.in : added -Zm400 to DEPCFLAGS to avoid :
gunidecomp.h(5846) : fatal error C1076: compiler limit :
internal heap limit reached; use /Zm to specify a higher limit

* glibconfig.h.win32.in : added recommended pragma list for
msvc again. They are an invaluable help of letting the
compiler catch bugs.

ChangeLog
ChangeLog.pre-2-0
ChangeLog.pre-2-10
ChangeLog.pre-2-12
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
glib/makefile.msc.in
glibconfig.h.win32.in

index 4706d07..e480989 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2001-11-23  Hans Breuer  <hans@breuer.org>
+
+       * glib/makefile.msc.in : added -Zm400 to DEPCFLAGS to avoid :
+       gunidecomp.h(5846) : fatal error C1076: compiler limit : 
+       internal heap limit reached; use /Zm to specify a higher limit
+
+       * glibconfig.h.win32.in : added recommended pragma list for
+       msvc again. They are an invaluable help of letting the
+       compiler catch bugs.
+
 Thu Nov 22 13:56:55 2001  Owen Taylor  <otaylor@redhat.com>
 
        * Version 1.3.11
index 4706d07..e480989 100644 (file)
@@ -1,3 +1,13 @@
+2001-11-23  Hans Breuer  <hans@breuer.org>
+
+       * glib/makefile.msc.in : added -Zm400 to DEPCFLAGS to avoid :
+       gunidecomp.h(5846) : fatal error C1076: compiler limit : 
+       internal heap limit reached; use /Zm to specify a higher limit
+
+       * glibconfig.h.win32.in : added recommended pragma list for
+       msvc again. They are an invaluable help of letting the
+       compiler catch bugs.
+
 Thu Nov 22 13:56:55 2001  Owen Taylor  <otaylor@redhat.com>
 
        * Version 1.3.11
index 4706d07..e480989 100644 (file)
@@ -1,3 +1,13 @@
+2001-11-23  Hans Breuer  <hans@breuer.org>
+
+       * glib/makefile.msc.in : added -Zm400 to DEPCFLAGS to avoid :
+       gunidecomp.h(5846) : fatal error C1076: compiler limit : 
+       internal heap limit reached; use /Zm to specify a higher limit
+
+       * glibconfig.h.win32.in : added recommended pragma list for
+       msvc again. They are an invaluable help of letting the
+       compiler catch bugs.
+
 Thu Nov 22 13:56:55 2001  Owen Taylor  <otaylor@redhat.com>
 
        * Version 1.3.11
index 4706d07..e480989 100644 (file)
@@ -1,3 +1,13 @@
+2001-11-23  Hans Breuer  <hans@breuer.org>
+
+       * glib/makefile.msc.in : added -Zm400 to DEPCFLAGS to avoid :
+       gunidecomp.h(5846) : fatal error C1076: compiler limit : 
+       internal heap limit reached; use /Zm to specify a higher limit
+
+       * glibconfig.h.win32.in : added recommended pragma list for
+       msvc again. They are an invaluable help of letting the
+       compiler catch bugs.
+
 Thu Nov 22 13:56:55 2001  Owen Taylor  <otaylor@redhat.com>
 
        * Version 1.3.11
index 4706d07..e480989 100644 (file)
@@ -1,3 +1,13 @@
+2001-11-23  Hans Breuer  <hans@breuer.org>
+
+       * glib/makefile.msc.in : added -Zm400 to DEPCFLAGS to avoid :
+       gunidecomp.h(5846) : fatal error C1076: compiler limit : 
+       internal heap limit reached; use /Zm to specify a higher limit
+
+       * glibconfig.h.win32.in : added recommended pragma list for
+       msvc again. They are an invaluable help of letting the
+       compiler catch bugs.
+
 Thu Nov 22 13:56:55 2001  Owen Taylor  <otaylor@redhat.com>
 
        * Version 1.3.11
index 4706d07..e480989 100644 (file)
@@ -1,3 +1,13 @@
+2001-11-23  Hans Breuer  <hans@breuer.org>
+
+       * glib/makefile.msc.in : added -Zm400 to DEPCFLAGS to avoid :
+       gunidecomp.h(5846) : fatal error C1076: compiler limit : 
+       internal heap limit reached; use /Zm to specify a higher limit
+
+       * glibconfig.h.win32.in : added recommended pragma list for
+       msvc again. They are an invaluable help of letting the
+       compiler catch bugs.
+
 Thu Nov 22 13:56:55 2001  Owen Taylor  <otaylor@redhat.com>
 
        * Version 1.3.11
index 4706d07..e480989 100644 (file)
@@ -1,3 +1,13 @@
+2001-11-23  Hans Breuer  <hans@breuer.org>
+
+       * glib/makefile.msc.in : added -Zm400 to DEPCFLAGS to avoid :
+       gunidecomp.h(5846) : fatal error C1076: compiler limit : 
+       internal heap limit reached; use /Zm to specify a higher limit
+
+       * glibconfig.h.win32.in : added recommended pragma list for
+       msvc again. They are an invaluable help of letting the
+       compiler catch bugs.
+
 Thu Nov 22 13:56:55 2001  Owen Taylor  <otaylor@redhat.com>
 
        * Version 1.3.11
index 4706d07..e480989 100644 (file)
@@ -1,3 +1,13 @@
+2001-11-23  Hans Breuer  <hans@breuer.org>
+
+       * glib/makefile.msc.in : added -Zm400 to DEPCFLAGS to avoid :
+       gunidecomp.h(5846) : fatal error C1076: compiler limit : 
+       internal heap limit reached; use /Zm to specify a higher limit
+
+       * glibconfig.h.win32.in : added recommended pragma list for
+       msvc again. They are an invaluable help of letting the
+       compiler catch bugs.
+
 Thu Nov 22 13:56:55 2001  Owen Taylor  <otaylor@redhat.com>
 
        * Version 1.3.11
index c9ea2dc..b89edf9 100644 (file)
@@ -9,7 +9,7 @@ TOP = ..\..
 
 INCLUDES = -I . -I ..
 DEFINES = -DHAVE_CONFIG_H -DGLIB_COMPILATION -DG_LOG_DOMAIN=\"GLib\" -DG_ENABLE_DEBUG
-DEPCFLAGS = $(INTL_CFLAGS) $(LIBICONV_CFLAGS) $(DIRENT_CFLAGS)
+DEPCFLAGS = -Zm400 $(INTL_CFLAGS) $(LIBICONV_CFLAGS) $(DIRENT_CFLAGS)
 
 all :                          \
        ..\config.h             \
index c39dec7..5157016 100644 (file)
@@ -9,6 +9,33 @@
 
 #include <glib/gmacros.h>
 
+#ifdef _MSC_VER
+/* Make MSVC more pedantic, this is a recommended pragma list
+ * from _Win32_Programming_ by Rector and Newcomer.
+ */
+#pragma warning(error:4002)
+#pragma warning(error:4003)
+#pragma warning(1:4010)
+#pragma warning(error:4013)
+#pragma warning(1:4016)
+#pragma warning(error:4020)
+#pragma warning(error:4021)
+#pragma warning(error:4027)
+#pragma warning(error:4029)
+#pragma warning(error:4033)
+#pragma warning(error:4035)
+#pragma warning(error:4045)
+#pragma warning(error:4047)
+#pragma warning(error:4049)
+#pragma warning(error:4053)
+#pragma warning(error:4071)
+#pragma warning(disable:4101)
+#pragma warning(error:4150)
+
+#pragma warning(disable:4244)  /* No possible loss of data warnings */
+#pragma warning(disable:4305)   /* No truncation from int to char warnings */
+#endif /* _MSC_VER */
+
 #include <limits.h>
 #include <float.h>