diff options
author | Per Bothner <per@bothner.com> | 2004-07-14 11:47:14 -0700 |
---|---|---|
committer | Per Bothner <bothner@gcc.gnu.org> | 2004-07-14 11:47:14 -0700 |
commit | 607bdeaa0da77dc1dd55af5083c1f7b75c831ca9 (patch) | |
tree | 07d7c13f0925b50b9afcb90837dc0a63527d31ac /gcc/stmt.c | |
parent | 26e0e4107be8104724d3ce21c7f093cee15a4365 (diff) | |
download | gcc-607bdeaa0da77dc1dd55af5083c1f7b75c831ca9.zip gcc-607bdeaa0da77dc1dd55af5083c1f7b75c831ca9.tar.gz gcc-607bdeaa0da77dc1dd55af5083c1f7b75c831ca9.tar.bz2 |
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
Diffstat (limited to 'gcc/stmt.c')
-rw-r--r-- | gcc/stmt.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1634,8 +1634,8 @@ warn_if_unused_value (tree exp, location_t locus) if (VOID_TYPE_P (TREE_TYPE (exp))) return 0; - if (EXPR_LOCUS (exp)) - locus = *EXPR_LOCUS (exp); + if (EXPR_HAS_LOCATION (exp)) + locus = EXPR_LOCATION (exp); switch (TREE_CODE (exp)) { |