c-typeck.c (emit_side_effect_warnings): Use EXPR_HAS_LOCATION instead of EXPR_LOCUS...
authorPer Bothner <per@bothner.com>
Wed, 14 Jul 2004 18:47:14 +0000 (11:47 -0700)
committerPer Bothner <bothner@gcc.gnu.org>
Wed, 14 Jul 2004 18:47:14 +0000 (11:47 -0700)
commit607bdeaa0da77dc1dd55af5083c1f7b75c831ca9
tree07d7c13f0925b50b9afcb90837dc0a63527d31ac
parent26e0e4107be8104724d3ce21c7f093cee15a4365
c-typeck.c (emit_side_effect_warnings): Use EXPR_HAS_LOCATION instead of EXPR_LOCUS in a boolean context...

* c-typeck.c (emit_side_effect_warnings):  Use EXPR_HAS_LOCATION
instead of EXPR_LOCUS in a boolean context, which is always true
if --enable-mapped-location.
* stmt.c (warn_if_unused_value):  Likewise.  Also use EXPR_LOCATION.

From-SVN: r84698
gcc/ChangeLog
gcc/c-typeck.c
gcc/stmt.c