From: Manuel López-Ibáñez Date: Fri, 15 Aug 2014 16:14:50 +0000 (+0000) Subject: call.c (build_conditional_expr_1): Use OPT_Wextra in warning. X-Git-Tag: releases/gcc-5.1.0~5453 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=598fc08518078da824ddfb97ae9caf4ed6c93dd4;p=thirdparty%2Fgcc.git call.c (build_conditional_expr_1): Use OPT_Wextra in warning. 2014-08-15 Manuel Lopez-Ibanez gcc/cp/: * call.c (build_conditional_expr_1): Use OPT_Wextra in warning. From-SVN: r214026 --- diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 54ed21334510..df3811ce5432 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,7 @@ +2014-08-15 Manuel Lopez-Ibanez + + * call.c (build_conditional_expr_1): Use OPT_Wextra in warning. + 2014-08-14 Paolo Carlini * typeck.c (composite_pointer_type, cxx_sizeof_or_alignof_type, diff --git a/gcc/cp/call.c b/gcc/cp/call.c index 43bfe504d21a..7044e1491156 100644 --- a/gcc/cp/call.c +++ b/gcc/cp/call.c @@ -5017,7 +5017,7 @@ build_conditional_expr_1 (location_t loc, tree arg1, tree arg2, tree arg3, type_promotes_to (arg3_type))))) { if (complain & tf_warning) - warning_at (loc, 0, "enumeral and non-enumeral type in " + warning_at (loc, OPT_Wextra, "enumeral and non-enumeral type in " "conditional expression"); }