From: Daniel Jasper Date: Tue, 21 Jul 2015 16:18:51 +0000 (+0000) Subject: Add missing parentheses to appease -Wlogical-op-parentheses. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c55f41641e4450554710a7fe88474cbf79c69f2a;p=clang Add missing parentheses to appease -Wlogical-op-parentheses. Add missing case to appease -Wswitch. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@242797 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Parse/ParseOpenMP.cpp b/lib/Parse/ParseOpenMP.cpp index f5827b3ecc..533d8db6c5 100644 --- a/lib/Parse/ParseOpenMP.cpp +++ b/lib/Parse/ParseOpenMP.cpp @@ -64,9 +64,9 @@ static OpenMPDirectiveKind ParseOpenMPDirectiveKind(Parser &P) { if (!TokenIsAnnotation && SDKind == OMPD_unknown) { TokenMatched = - (i == 0) && - !P.getPreprocessor().getSpelling(Tok).compare("point") || - (i == 1) && !P.getPreprocessor().getSpelling(Tok).compare("data"); + ((i == 0) && + !P.getPreprocessor().getSpelling(Tok).compare("point")) || + ((i == 1) && !P.getPreprocessor().getSpelling(Tok).compare("data")); } else { TokenMatched = SDKind == F[i][1] && SDKind != OMPD_unknown; } @@ -139,6 +139,8 @@ Parser::DeclGroupPtrTy Parser::ParseOpenMPDeclarativeDirective() { Diag(Tok, diag::err_omp_unexpected_directive) << getOpenMPDirectiveName(DKind); break; + case OMPD_target_data: + break; } SkipUntil(tok::annot_pragma_openmp_end); return DeclGroupPtrTy();