From 2e14370ed42be496fb7a5f2d803824a01a646abe Mon Sep 17 00:00:00 2001 From: Jason Merrill Date: Mon, 3 Apr 1995 23:16:19 +0000 Subject: [PATCH] oops From-SVN: r9308 --- gcc/c-typeck.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gcc/c-typeck.c b/gcc/c-typeck.c index 20c653a2e52..b6e9a6b972b 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. */ -- 2.30.2