Received: from eggs.gnu.org ([2001:4830:134:3::10]:52113) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZyLWY-0000Fd-K5 for qemu-devel@nongnu.org; Mon, 16 Nov 2015 10:16:55 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZyLWX-0006xo-UZ for qemu-devel@nongnu.org; Mon, 16 Nov 2015 10:16:54 -0500 Received: from mnementh.archaic.org.uk ([2001:8b0:1d0::1]:35502) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZyLWX-0006xf-OR for qemu-devel@nongnu.org; Mon, 16 Nov 2015 10:16:53 -0500 From: Peter Maydell Date: Mon, 16 Nov 2015 15:16:50 +0000 Message-Id: <1447687010-4471-1-git-send-email-peter.maydell@linaro.org> Subject: [Qemu-devel] [PATCH] hw/audio/fmopl.c: Avoid clang warning about shifting negative number List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Gerd Hoffmann , patches@linaro.org Newer versions of clang warn: hw/audio/fmopl.c:1085:39: warning: shifting a negative signed value is undefined [-Wshift-negative-value] data = Limit( outd[0] , OPL_MAXOUT, OPL_MINOUT ); ^~~~~~~~~~ hw/audio/fmopl.c:75:28: note: expanded from macro 'OPL_MINOUT' #define OPL_MINOUT (-0x8000< --- hw/audio/fmopl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/audio/fmopl.c b/hw/audio/fmopl.c index 81c0c1b..807b29c 100644 --- a/hw/audio/fmopl.c +++ b/hw/audio/fmopl.c @@ -72,7 +72,7 @@ static int opl_dbg_maxchip,opl_dbg_chip; /* final output shift , limit minimum and maximum */ #define OPL_OUTSB (TL_BITS+3-16) /* OPL output final shift 16bit */ #define OPL_MAXOUT (0x7fff<