diff options
author | deanm@chromium.org <deanm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-11-21 18:48:52 +0000 |
---|---|---|
committer | deanm@chromium.org <deanm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-11-21 18:48:52 +0000 |
commit | 0eb9f434fb019da43b97c81d7e314885d43af0f9 (patch) | |
tree | 8e7bb2901b0e285ee2ce2875d241852ff14a168d /webkit/port | |
parent | f1a0eae704dcc8848847201d48922aa1984e522a (diff) | |
download | chromium_src-0eb9f434fb019da43b97c81d7e314885d43af0f9.zip chromium_src-0eb9f434fb019da43b97c81d7e314885d43af0f9.tar.gz chromium_src-0eb9f434fb019da43b97c81d7e314885d43af0f9.tar.bz2 |
Wrap MSVC-specific pragmas. As -Wunknown-pragmas has been disabled for wtf,
some of these sneaked in.
BUG=2053
Review URL: http://codereview.chromium.org/11801
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5830 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/port')
-rw-r--r-- | webkit/port/bridge/chromium/PluginsChromium.cpp | 7 | ||||
-rw-r--r-- | webkit/port/loader/IconLoader.cpp | 8 | ||||
-rw-r--r-- | webkit/port/platform/chromium/ClipboardChromium.cpp | 8 | ||||
-rw-r--r-- | webkit/port/platform/chromium/FileChooserChromium.cpp | 8 | ||||
-rw-r--r-- | webkit/port/platform/chromium/PopupMenuChromium.cpp | 8 | ||||
-rw-r--r-- | webkit/port/platform/chromium/PopupMenuChromium.h | 10 |
6 files changed, 39 insertions, 10 deletions
diff --git a/webkit/port/bridge/chromium/PluginsChromium.cpp b/webkit/port/bridge/chromium/PluginsChromium.cpp index cdc69b1..20c2ce0 100644 --- a/webkit/port/bridge/chromium/PluginsChromium.cpp +++ b/webkit/port/bridge/chromium/PluginsChromium.cpp @@ -37,7 +37,14 @@ #include "ChromiumBridge.h" #include "PluginData.h" +#if COMPILER(MSVC) +__pragma(warning(push, 0)) +#endif #include "PluginInfoStore.h" +#if COMPILER(MSVC) +__pragma(warning(pop)) +#endif +#undef LOG namespace WebCore { diff --git a/webkit/port/loader/IconLoader.cpp b/webkit/port/loader/IconLoader.cpp index 345d2af..26c6c6cb 100644 --- a/webkit/port/loader/IconLoader.cpp +++ b/webkit/port/loader/IconLoader.cpp @@ -25,7 +25,9 @@ #include "config.h" -#pragma warning(push, 0) +#if COMPILER(MSVC) +__pragma(warning(push, 0)) +#endif #include "IconLoader.h" #include "Document.h" @@ -38,7 +40,9 @@ #include "ResourceResponse.h" #include "ResourceRequest.h" #include "SubresourceLoader.h" -#pragma warning(pop) +#if COMPILER(MSVC) +__pragma(warning(pop)) +#endif using namespace std; diff --git a/webkit/port/platform/chromium/ClipboardChromium.cpp b/webkit/port/platform/chromium/ClipboardChromium.cpp index 5087cdf..ac701fe 100644 --- a/webkit/port/platform/chromium/ClipboardChromium.cpp +++ b/webkit/port/platform/chromium/ClipboardChromium.cpp @@ -25,7 +25,9 @@ #include "config.h" -#pragma warning(push, 0) +#if COMPILER(MSVC) +__pragma(warning(push, 0)) +#endif #include "CachedImage.h" #include "ChromiumBridge.h" #include "ChromiumDataObject.h" @@ -53,7 +55,9 @@ #include "StringBuilder.h" #include "StringHash.h" #include <wtf/RefPtr.h> -#pragma warning(pop) +#if COMPILER(MSVC) +__pragma(warning(pop)) +#endif namespace WebCore { diff --git a/webkit/port/platform/chromium/FileChooserChromium.cpp b/webkit/port/platform/chromium/FileChooserChromium.cpp index 37a075e..2a80744 100644 --- a/webkit/port/platform/chromium/FileChooserChromium.cpp +++ b/webkit/port/platform/chromium/FileChooserChromium.cpp @@ -25,7 +25,9 @@ #include "config.h" -#pragma warning(push, 0) +#if COMPILER(MSVC) +__pragma(warning(push, 0)) +#endif #include "ChromeClientChromium.h" #include "Document.h" #include "Frame.h" @@ -35,7 +37,9 @@ #include "NotImplemented.h" #include "Page.h" #include "StringTruncator.h" -#pragma warning(pop) +#if COMPILER(MSVC) +__pragma(warning(pop)) +#endif namespace WebCore { diff --git a/webkit/port/platform/chromium/PopupMenuChromium.cpp b/webkit/port/platform/chromium/PopupMenuChromium.cpp index 29fcda3..5cda719 100644 --- a/webkit/port/platform/chromium/PopupMenuChromium.cpp +++ b/webkit/port/platform/chromium/PopupMenuChromium.cpp @@ -29,7 +29,9 @@ #include "config.h" -#pragma warning(push, 0) +#if COMPILER(MSVC) +__pragma(warning(push, 0)) +#endif #include "PopupMenu.h" #include "CharacterNames.h" @@ -55,7 +57,9 @@ #include "ScrollbarTheme.h" #include "SystemTime.h" #include "Widget.h" -#pragma warning(pop) +#if COMPILER(MSVC) +__pragma(warning(pop)) +#endif #include "webkit/port/platform/chromium/PopupMenuChromium.h" diff --git a/webkit/port/platform/chromium/PopupMenuChromium.h b/webkit/port/platform/chromium/PopupMenuChromium.h index 0b73774..0f97ee4 100644 --- a/webkit/port/platform/chromium/PopupMenuChromium.h +++ b/webkit/port/platform/chromium/PopupMenuChromium.h @@ -5,12 +5,18 @@ #ifndef PopupMenuChromium_h #define PopupMenuChromium_h -#pragma warning(push, 0) +#include "config.h" + +#if COMPILER(MSVC) +__pragma(warning(push, 0)) +#endif #include "PopupMenuClient.h" #include "FramelessScrollView.h" #include "IntRect.h" -#pragma warning(pop) +#if COMPILER(MSVC) +__pragma(warning(pop)) +#endif namespace WebCore { |