call.c (build_conditional_expr_1): Use OPT_Wextra in warning.

2014-08-15  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>

gcc/cp/:
	* call.c (build_conditional_expr_1): Use OPT_Wextra in warning.

From-SVN: r214026
This commit is contained in:
Manuel López-Ibáñez 2014-08-15 16:14:50 +00:00
parent 2ce8cb99a6
commit 598fc08518
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2014-08-15 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
* call.c (build_conditional_expr_1): Use OPT_Wextra in warning.
2014-08-14 Paolo Carlini <paolo.carlini@oracle.com>
* typeck.c (composite_pointer_type, cxx_sizeof_or_alignof_type,

View File

@ -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");
}