* c-typeck.c (emit_side_effect_warnings): Use EXPR_HAS_LOCATION
authorbothner <bothner@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 14 Jul 2004 18:47:14 +0000 (18:47 +0000)
committerbothner <bothner@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 14 Jul 2004 18:47:14 +0000 (18:47 +0000)
commit51a40400500a1101e031d9d8493e669821359d9b
tree07d7c13f0925b50b9afcb90837dc0a63527d31ac
parent8828f7b766181dbc7e0a8a648108b756ba68ed23
* 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@84698 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/c-typeck.c
gcc/stmt.c