[cfe-commits] r146847 - in /cfe/trunk/lib: Parse/ParseExprCXX.cpp Sema/SemaExpr.cpp
Benjamin Kramer
benny.kra at googlemail.com
Sun Dec 18 04:18:02 PST 2011
Author: d0k
Date: Sun Dec 18 06:18:02 2011
New Revision: 146847
URL: http://llvm.org/viewvc/llvm-project?rev=146847&view=rev
Log:
Silence gcc warnings.
Modified:
cfe/trunk/lib/Parse/ParseExprCXX.cpp
cfe/trunk/lib/Sema/SemaExpr.cpp
Modified: cfe/trunk/lib/Parse/ParseExprCXX.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Parse/ParseExprCXX.cpp?rev=146847&r1=146846&r2=146847&view=diff
==============================================================================
--- cfe/trunk/lib/Parse/ParseExprCXX.cpp (original)
+++ cfe/trunk/lib/Parse/ParseExprCXX.cpp Sun Dec 18 06:18:02 2011
@@ -1022,7 +1022,7 @@
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,
Modified: cfe/trunk/lib/Sema/SemaExpr.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaExpr.cpp?rev=146847&r1=146846&r2=146847&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaExpr.cpp (original)
+++ cfe/trunk/lib/Sema/SemaExpr.cpp Sun Dec 18 06:18:02 2011
@@ -9262,7 +9262,8 @@
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.
More information about the cfe-commits
mailing list