diff options
author | Jason Merrill <merrill@gnu.org> | 1995-04-03 23:16:19 +0000 |
---|---|---|
committer | Jason Merrill <merrill@gnu.org> | 1995-04-03 23:16:19 +0000 |
commit | 2e14370ed42be496fb7a5f2d803824a01a646abe (patch) | |
tree | e156f9206f84e89dd17605e0d43ee56ce428d66d /gcc | |
parent | 28d29b39bc51b82d6f437cc29fa95b5d1495a2ed (diff) | |
download | gcc-2e14370ed42be496fb7a5f2d803824a01a646abe.zip gcc-2e14370ed42be496fb7a5f2d803824a01a646abe.tar.gz gcc-2e14370ed42be496fb7a5f2d803824a01a646abe.tar.bz2 |
oops
From-SVN: r9308
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/c-typeck.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/c-typeck.c b/gcc/c-typeck.c index 20c653a..b6e9a6b 100644 --- a/gcc/c-typeck.c +++ b/gcc/c-typeck.c @@ -2455,6 +2455,9 @@ build_binary_op (code, orig_op0, orig_op1, convert_p) all the values of the unsigned type. */ if (! TREE_UNSIGNED (result_type)) /* OK */; + /* Do not warn if both operands are unsigned. */ + else if (op0_signed == op1_signed) + /* OK */; /* Do not warn if the signed quantity is an unsuffixed integer literal (or some static constant expression involving such literals) and it is non-negative. */ |