2007-04-25 Dirk Mueller <dmueller@suse.de>
authormueller <mueller@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 25 Apr 2007 18:44:07 +0000 (18:44 +0000)
committermueller <mueller@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 25 Apr 2007 18:44:07 +0000 (18:44 +0000)
       * c-typeck.c (build_compound_expr): Annotate warning()
       call with OPT_Wunused_value.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@124160 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/c-typeck.c

index 07cf33a..9958bd7 100644 (file)
@@ -1,3 +1,8 @@
+2007-04-25  Dirk Mueller  <dmueller@suse.de>
+
+       * c-typeck.c (build_compound_expr): Annotate warning()
+       call with OPT_Wunused_value.
+
 2007-04-25  Thiemo Seufer  <ths@mips.com>
 
        * config/mips/mips.opt (mdmx, mmt, mno-mdmx): New options.
index 5976cb2..a3cd563 100644 (file)
@@ -3402,7 +3402,8 @@ build_compound_expr (tree expr1, tree expr2)
                       || TREE_CODE (TREE_OPERAND (expr1, 1)) == NOP_EXPR))
            ; /* (void) a, (void) b, c */
          else
-           warning (0, "left-hand operand of comma expression has no effect");
+           warning (OPT_Wunused_value, 
+                    "left-hand operand of comma expression has no effect");
        }
     }