diff options
author | evanm@google.com <evanm@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-09-16 19:28:06 +0000 |
---|---|---|
committer | evanm@google.com <evanm@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-09-16 19:28:06 +0000 |
commit | b91902d2d0822efddcc04d7feecbe26704e4f0d2 (patch) | |
tree | 5ea178b825f69ef64272d29507a14b7d8f2cf54e /base/compiler_specific.h | |
parent | 8f113df07aaca851457ba19602f01087e520f4df (diff) | |
download | chromium_src-b91902d2d0822efddcc04d7feecbe26704e4f0d2.zip chromium_src-b91902d2d0822efddcc04d7feecbe26704e4f0d2.tar.gz chromium_src-b91902d2d0822efddcc04d7feecbe26704e4f0d2.tar.bz2 |
Unignore most warnings on POSIX in build/SConscript.main.
BUG=2053
Patch from Paweł Hajdan jr <phajdan.jr@gmail.com>.
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2272 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/compiler_specific.h')
-rw-r--r-- | base/compiler_specific.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/base/compiler_specific.h b/base/compiler_specific.h index 0043dd8..4ab4c91 100644 --- a/base/compiler_specific.h +++ b/base/compiler_specific.h @@ -28,6 +28,13 @@ // The warning remains disabled until popped by MSVC_POP_WARNING. #define MSVC_PUSH_DISABLE_WARNING(n) __pragma(warning(push)) \ __pragma(warning(disable:n)) + +// MSVC_PUSH_WARNING_LEVEL pushes |n| as the global warning level. The level +// remains in effect until popped by MSVC_POP_WARNING(). Use 0 to disable all +// warnings. +#define MSVC_PUSH_WARNING_LEVEL(n) __pragma(warning(push, n)) + +// Pop effects of innermost MSVC_PUSH_* macro. #define MSVC_POP_WARNING() __pragma(warning(pop)) // Allows |this| to be passed as an argument in constructor initializer lists. @@ -47,6 +54,7 @@ #define MSVC_SUPPRESS_WARNING(n) #define MSVC_PUSH_DISABLE_WARNING(n) +#define MSVC_PUSH_WARNING_LEVEL(n) #define MSVC_POP_WARNING() #define ALLOW_THIS_IN_INITIALIZER_LIST(code) code |