]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
call.c (build_conditional_expr_1): Use OPT_Wextra in warning.
authorManuel López-Ibáñez <manu@gcc.gnu.org>
Fri, 15 Aug 2014 16:14:50 +0000 (16:14 +0000)
committerManuel López-Ibáñez <manu@gcc.gnu.org>
Fri, 15 Aug 2014 16:14:50 +0000 (16:14 +0000)
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

gcc/cp/ChangeLog
gcc/cp/call.c

index 54ed21334510f8c1c2eaddb29f9a4a9bbd11cd3d..df3811ce543206664bc1cdbd513bc476beb8678e 100644 (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,
index 43bfe504d21a719da477eb8543eefa63de0b18dc..7044e1491156ab1f1e6e65648abf0ba89488ebba 100644 (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");
         }