]> granicus.if.org Git - clang/commitdiff
Make PTH warnings actual warnings instead of 'notes'.
authorTed Kremenek <kremenek@apple.com>
Thu, 19 Feb 2009 22:13:40 +0000 (22:13 +0000)
committerTed Kremenek <kremenek@apple.com>
Thu, 19 Feb 2009 22:13:40 +0000 (22:13 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65071 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Lex/PTHLexer.cpp

index ac510af8b94ddad2927a97b46579310626233c73..b0a610d3d3e022d0225a8d636e6c698a4a1fcfb3 100644 (file)
@@ -584,7 +584,7 @@ PTHManager::~PTHManager() {
 static void InvalidPTH(Diagnostic *Diags, const char* Msg = 0) {
   if (!Diags) return;  
   if (!Msg) Msg = "Invalid or corrupted PTH file";
-  unsigned DiagID = Diags->getCustomDiagID(Diagnostic::Note, Msg);
+  unsigned DiagID = Diags->getCustomDiagID(Diagnostic::Warning, Msg);
   Diags->Report(FullSourceLoc(), DiagID);
 }