summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2022-12-09 10:31:10 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2022-12-09 10:31:10 -0800
commit66bc54b459141d5b5a7d1af2ef64b28968cd2339 (patch)
tree256b386000dbc7b4f4785ca8a1de5130c5c9fda1
parente1c6705e95b432cdf7d69babccd9f745975a6899 (diff)
leo_accel: Resolve -Wempty-body compiler warning
leo_accel.c: In function ‘LeoAccelInit’: leo_accel.c:119:43: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body] if (!pLeo->NoAccel) /* XXX do nothing */ ; ^ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r--src/leo_accel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/leo_accel.c b/src/leo_accel.c
index 3981f61..8afee00 100644
--- a/src/leo_accel.c
+++ b/src/leo_accel.c
@@ -116,7 +116,7 @@ Bool LeoAccelInit (ScreenPtr pScreen, LeoPtr pLeo)
pLeo->lc0 = lc0 = (LeoCommand0 *) ((char *)pLeo->fb + LEO_LC0_VOFF);
pLeo->ld0 = ld0 = (LeoDraw *) ((char *)pLeo->fb + LEO_LD0_VOFF);
- if (!pLeo->NoAccel) /* XXX do nothing */ ;
+ if (!pLeo->NoAccel) { /* XXX do nothing */ }
/* We will now clear the screen: we'll draw a rectangle covering all the
* viewscreen, using a 'blackness' ROP.