From cb5d4b416a0fc850a1c119755a9cc3c4f0d7a545 Mon Sep 17 00:00:00 2001 From: Jeremy Huddleston Date: Wed, 23 Mar 2011 12:10:15 -0700 Subject: [PATCH] XQuartz: applewm: Don't check if requested window level is < 0 because it is unsigned (-Wtautological-compare) Signed-off-by: Jeremy Huddleston --- hw/xquartz/applewm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/xquartz/applewm.c b/hw/xquartz/applewm.c index ec20534e0..2f26e61d9 100644 --- a/hw/xquartz/applewm.c +++ b/hw/xquartz/applewm.c @@ -437,7 +437,7 @@ ProcAppleWMSetWindowLevel(register ClientPtr client) DixReadAccess)) return BadValue; - if (stuff->level < 0 || stuff->level >= AppleWMNumWindowLevels) { + if (stuff->level >= AppleWMNumWindowLevels) { return BadValue; }