summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/PrintPreprocessedOutput.cpp
diff options
context:
space:
mode:
authorReid Kleckner <reid@kleckner.net>2013-10-02 15:19:23 +0000
committerReid Kleckner <reid@kleckner.net>2013-10-02 15:19:23 +0000
commit4d185105e9219a23d18b3cc8e43074b1b8e0bc35 (patch)
treeeda0c2281c1451b2db32c53de582fdb2df5ecc55 /clang/lib/Frontend/PrintPreprocessedOutput.cpp
parentd8c3e91eebb2baeb2cf657e91fb39dd46d514105 (diff)
downloadbcm5719-llvm-4d185105e9219a23d18b3cc8e43074b1b8e0bc35.tar.gz
bcm5719-llvm-4d185105e9219a23d18b3cc8e43074b1b8e0bc35.zip
Accept #pragma warning(push, 0) without warning
This partially addresses PR17435, but it doesn't actually implement the pragma. If we implement it, we should map levels 1-4 to something like -Wall and level 0 to something like -w. llvm-svn: 191833
Diffstat (limited to 'clang/lib/Frontend/PrintPreprocessedOutput.cpp')
-rw-r--r--clang/lib/Frontend/PrintPreprocessedOutput.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Frontend/PrintPreprocessedOutput.cpp b/clang/lib/Frontend/PrintPreprocessedOutput.cpp
index ecdfb095e6e..3545d70744f 100644
--- a/clang/lib/Frontend/PrintPreprocessedOutput.cpp
+++ b/clang/lib/Frontend/PrintPreprocessedOutput.cpp
@@ -528,7 +528,7 @@ void PrintPPOutputPPCallbacks::PragmaWarningPush(SourceLocation Loc,
startNewLineIfNeeded();
MoveToLine(Loc);
OS << "#pragma warning(push";
- if (Level)
+ if (Level >= 0)
OS << ", " << Level;
OS << ')';
setEmittedDirectiveOnThisLine();
OpenPOWER on IntegriCloud