From: Jason Merrill Date: Mon, 3 Apr 1995 23:16:19 +0000 (+0000) Subject: oops X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2e14370ed42be496fb7a5f2d803824a01a646abe;p=gcc.git oops From-SVN: r9308 --- 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. */