From 198e0836f23438533d67b8de88b3476d930ebfb0 Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Sun, 18 Dec 2011 12:18:02 +0000 Subject: Silence gcc warnings. llvm-svn: 146847 --- clang/lib/Parse/ParseExprCXX.cpp | 2 +- clang/lib/Sema/SemaExpr.cpp | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'clang') diff --git a/clang/lib/Parse/ParseExprCXX.cpp b/clang/lib/Parse/ParseExprCXX.cpp index 2e0b6a55d5d..fff68b50fd8 100644 --- a/clang/lib/Parse/ParseExprCXX.cpp +++ b/clang/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/clang/lib/Sema/SemaExpr.cpp b/clang/lib/Sema/SemaExpr.cpp index 552d0e7f21b..bc1e0a27b41 100644 --- a/clang/lib/Sema/SemaExpr.cpp +++ b/clang/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. -- cgit v1.2.3