From: Benjamin Kramer Date: Sun, 18 Dec 2011 12:18:02 +0000 (+0000) Subject: Silence gcc warnings. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=85c60db2131c6d210d4777c3d50bdaf0e69bb8bf;p=clang Silence gcc warnings. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@146847 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Parse/ParseExprCXX.cpp b/lib/Parse/ParseExprCXX.cpp index 2e0b6a55d5..fff68b50fd 100644 --- a/lib/Parse/ParseExprCXX.cpp +++ b/lib/Parse/ParseExprCXX.cpp @@ -1022,7 +1022,7 @@ Parser::ParseCXXPseudoDestructor(ExprArg Base, SourceLocation OpLoc, if (Tok.is(tok::kw_decltype) && !FirstTypeName.isValid() && SS.isEmpty()) { DeclSpec DS(AttrFactory); - SourceLocation EndLoc = ParseDecltypeSpecifier(DS); + ParseDecltypeSpecifier(DS); if (DS.getTypeSpecType() == TST_error) return ExprError(); return Actions.ActOnPseudoDestructorExpr(getCurScope(), Base, OpLoc, diff --git a/lib/Sema/SemaExpr.cpp b/lib/Sema/SemaExpr.cpp index 552d0e7f21..bc1e0a27b4 100644 --- a/lib/Sema/SemaExpr.cpp +++ b/lib/Sema/SemaExpr.cpp @@ -9262,7 +9262,8 @@ bool Sema::VerifyIntegerConstantExpression(const Expr *E, llvm::APSInt *Result, if (!Folded || !AllowFold) { Diag(E->getSourceRange().getBegin(), - DiagID ? DiagID : diag::err_expr_not_ice) << E->getSourceRange(); + DiagID ? DiagID : unsigned(diag::err_expr_not_ice)) + << E->getSourceRange(); // We only show the notes if they're not the usual "invalid subexpression" // or if they are actually in a subexpression.