diff --git a/clang/Basic/SourceBuffer.cpp b/clang/Basic/SourceBuffer.cpp index d2c0ad2c4c5d..47a945db6d16 100644 --- a/clang/Basic/SourceBuffer.cpp +++ b/clang/Basic/SourceBuffer.cpp @@ -131,6 +131,7 @@ SourceBufferMMapFile::SourceBufferMMapFile(const sys::Path &Filename) { // FIXME: This does an extra stat syscall to figure out the size, but we // already know the size! bool Failure = File.open(Filename); + Failure = Failure; // Silence warning in no-asserts mode. assert(!Failure && "Can't open file??"); File.map(); diff --git a/clang/Lex/Preprocessor.cpp b/clang/Lex/Preprocessor.cpp index 09fa7c1f550b..4a57a0fd6312 100644 --- a/clang/Lex/Preprocessor.cpp +++ b/clang/Lex/Preprocessor.cpp @@ -1238,6 +1238,7 @@ void Preprocessor::SkipExcludedConditionalBlock(SourceLocation IfTokenLoc, PPConditionalInfo CondInfo; CondInfo.WasSkipping = true; // Silence bogus warning. bool InCond = CurLexer->popConditionalLevel(CondInfo); + InCond = InCond; // Silence warning in no-asserts mode. assert(!InCond && "Can't be skipping if not in a conditional!"); // If we popped the outermost skipping block, we're done skipping!