From: Benjamin Kramer Date: Sat, 20 Jul 2013 12:06:17 +0000 (+0000) Subject: Silence GCC warning for using both enum and unsigned in a ternary expr. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=844a52783c73cff2535c8d9c9bfe8da29991c1ea;p=clang Silence GCC warning for using both enum and unsigned in a ternary expr. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@186762 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Parse/ParseOpenMP.cpp b/lib/Parse/ParseOpenMP.cpp index 2f6be9e787..59450e7008 100644 --- a/lib/Parse/ParseOpenMP.cpp +++ b/lib/Parse/ParseOpenMP.cpp @@ -303,7 +303,7 @@ OMPClause *Parser::ParseOpenMPSimpleClause(OpenMPClauseKind Kind) { return 0; unsigned Type = Tok.isAnnotation() ? - OMPC_DEFAULT_unknown : + unsigned(OMPC_DEFAULT_unknown) : getOpenMPSimpleClauseType(Kind, PP.getSpelling(Tok)); SourceLocation TypeLoc = Tok.getLocation(); if (Tok.isNot(tok::r_paren) && Tok.isNot(tok::comma) &&