c-typeck.c (build_compound_expr): Annotate warning() call with OPT_Wunused_value.

2007-04-25  Dirk Mueller  <dmueller@suse.de>

       * c-typeck.c (build_compound_expr): Annotate warning()
       call with OPT_Wunused_value.

From-SVN: r124160
This commit is contained in:
Dirk Mueller 2007-04-25 18:44:07 +00:00 committed by Dirk Mueller
parent 4b5f13f327
commit 253a697e66
2 changed files with 7 additions and 1 deletions

View 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.

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