aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorDirk Mueller <dmueller@suse.de>2007-04-25 18:44:07 +0000
committerDirk Mueller <mueller@gcc.gnu.org>2007-04-25 18:44:07 +0000
commit253a697e66210bca8644dbac30b22c839cecaeae (patch)
tree9575b37d40444b26c4f003bd26ebe8469e820cae /gcc
parent4b5f13f327efd8af5a4ebad0ad373163380d57db (diff)
downloadgcc-253a697e66210bca8644dbac30b22c839cecaeae.zip
gcc-253a697e66210bca8644dbac30b22c839cecaeae.tar.gz
gcc-253a697e66210bca8644dbac30b22c839cecaeae.tar.bz2
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
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/c-typeck.c3
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 07cf33a..9958bd7 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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.
diff --git a/gcc/c-typeck.c b/gcc/c-typeck.c
index 5976cb2..a3cd563 100644
--- a/gcc/c-typeck.c
+++ b/gcc/c-typeck.c
@@ -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");
}
}