From 844a52783c73cff2535c8d9c9bfe8da29991c1ea Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Sat, 20 Jul 2013 12:06:17 +0000 Subject: [PATCH] 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 --- lib/Parse/ParseOpenMP.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) && -- 2.40.0