diff options
author | Hans Breuer <hans@breuer.org> | 2001-11-23 15:59:30 +0000 |
---|---|---|
committer | Hans Breuer <hans@src.gnome.org> | 2001-11-23 15:59:30 +0000 |
commit | 70f846285fd560d919dc285bfece7e1200a65b07 (patch) | |
tree | 2db535bbbdafa0000cd8be7eafdd8f029d4c0a22 /glibconfig.h.win32.in | |
parent | 7b8ad79677836e20ef4352e95dfe3a7e0b96a3cc (diff) | |
download | glib-70f846285fd560d919dc285bfece7e1200a65b07.tar.gz glib-70f846285fd560d919dc285bfece7e1200a65b07.tar.bz2 glib-70f846285fd560d919dc285bfece7e1200a65b07.zip |
added -Zm400 to DEPCFLAGS to avoid : gunidecomp.h(5846) : fatal error
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.
Diffstat (limited to 'glibconfig.h.win32.in')
-rw-r--r-- | glibconfig.h.win32.in | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/glibconfig.h.win32.in b/glibconfig.h.win32.in index c39dec7f0..515701644 100644 --- a/glibconfig.h.win32.in +++ b/glibconfig.h.win32.in @@ -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> |