aboutsummaryrefslogtreecommitdiff
path: root/gcc/ch/expr.c
diff options
context:
space:
mode:
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>1998-10-15 07:04:49 +0000
committerKaveh Ghazi <ghazi@gcc.gnu.org>1998-10-15 07:04:49 +0000
commit12fe4621bfe1266d2c374c053aa031a435b8661f (patch)
tree38b37e10ac3ee442c452c75d9c8ccb155ae5480e /gcc/ch/expr.c
parent5557c30d8ba57cb8eb2b64c34a3962246bde2db6 (diff)
downloadgcc-12fe4621bfe1266d2c374c053aa031a435b8661f.zip
gcc-12fe4621bfe1266d2c374c053aa031a435b8661f.tar.gz
gcc-12fe4621bfe1266d2c374c053aa031a435b8661f.tar.bz2
Warning fixes:
* expr.c (build_chill_card): Use &&, not &, when comparing truth values. * parse.c (parse_spec_module): Remove unused variable `module_name', but preserve function call from initialization. (parse_operand6): Mark variable `location' with ATTRIBUTE_UNUSED. * inout.c (init_text_location): Remove unused variable `textlength'. From-SVN: r23106
Diffstat (limited to 'gcc/ch/expr.c')
-rw-r--r--gcc/ch/expr.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/ch/expr.c b/gcc/ch/expr.c
index acc1bc7..0825ce6 100644
--- a/gcc/ch/expr.c
+++ b/gcc/ch/expr.c
@@ -1372,7 +1372,8 @@ build_chill_card (powerset)
{ int size;
/* Do constant folding, if possible. */
- if (TREE_CODE (powerset) == CONSTRUCTOR & TREE_CONSTANT (powerset)
+ if (TREE_CODE (powerset) == CONSTRUCTOR
+ && TREE_CONSTANT (powerset)
&& (size = int_size_in_bytes (TREE_TYPE (powerset))) >= 0)
{
int bit_size = size * BITS_PER_UNIT;