From: Hans Breuer Date: Fri, 23 Nov 2001 15:59:30 +0000 (+0000) Subject: added -Zm400 to DEPCFLAGS to avoid : gunidecomp.h(5846) : fatal error X-Git-Url: http://git.openbox.org/?a=commitdiff_plain;h=70f846285fd560d919dc285bfece7e1200a65b07;p=dana%2Fcg-glib.git added -Zm400 to DEPCFLAGS to avoid : gunidecomp.h(5846) : fatal error 2001-11-23 Hans Breuer * 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. --- diff --git a/ChangeLog b/ChangeLog index 4706d07c..e4809893 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,13 @@ +2001-11-23 Hans Breuer + + * 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 * Version 1.3.11 diff --git a/ChangeLog.pre-2-0 b/ChangeLog.pre-2-0 index 4706d07c..e4809893 100644 --- a/ChangeLog.pre-2-0 +++ b/ChangeLog.pre-2-0 @@ -1,3 +1,13 @@ +2001-11-23 Hans Breuer + + * 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 * Version 1.3.11 diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index 4706d07c..e4809893 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,13 @@ +2001-11-23 Hans Breuer + + * 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 * Version 1.3.11 diff --git a/ChangeLog.pre-2-12 b/ChangeLog.pre-2-12 index 4706d07c..e4809893 100644 --- a/ChangeLog.pre-2-12 +++ b/ChangeLog.pre-2-12 @@ -1,3 +1,13 @@ +2001-11-23 Hans Breuer + + * 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 * Version 1.3.11 diff --git a/ChangeLog.pre-2-2 b/ChangeLog.pre-2-2 index 4706d07c..e4809893 100644 --- a/ChangeLog.pre-2-2 +++ b/ChangeLog.pre-2-2 @@ -1,3 +1,13 @@ +2001-11-23 Hans Breuer + + * 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 * Version 1.3.11 diff --git a/ChangeLog.pre-2-4 b/ChangeLog.pre-2-4 index 4706d07c..e4809893 100644 --- a/ChangeLog.pre-2-4 +++ b/ChangeLog.pre-2-4 @@ -1,3 +1,13 @@ +2001-11-23 Hans Breuer + + * 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 * Version 1.3.11 diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index 4706d07c..e4809893 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,3 +1,13 @@ +2001-11-23 Hans Breuer + + * 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 * Version 1.3.11 diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index 4706d07c..e4809893 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,3 +1,13 @@ +2001-11-23 Hans Breuer + + * 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 * Version 1.3.11 diff --git a/glib/makefile.msc.in b/glib/makefile.msc.in index c9ea2dc6..b89edf93 100644 --- a/glib/makefile.msc.in +++ b/glib/makefile.msc.in @@ -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 \ diff --git a/glibconfig.h.win32.in b/glibconfig.h.win32.in index c39dec7f..51570164 100644 --- a/glibconfig.h.win32.in +++ b/glibconfig.h.win32.in @@ -9,6 +9,33 @@ #include +#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 #include