From 395c59c690db303fa016e64ac22151a29fbe4197 Mon Sep 17 00:00:00 2001 From: Ted Kremenek Date: Thu, 19 Feb 2009 22:13:40 +0000 Subject: [PATCH] Make PTH warnings actual warnings instead of 'notes'. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65071 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Lex/PTHLexer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Lex/PTHLexer.cpp b/lib/Lex/PTHLexer.cpp index ac510af8b9..b0a610d3d3 100644 --- a/lib/Lex/PTHLexer.cpp +++ b/lib/Lex/PTHLexer.cpp @@ -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); } -- 2.40.0