From 8cddfb1205dd000e5071c237fbbda84656149242 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Thu, 8 Dec 2022 18:03:11 -0800 Subject: Quiet -Wempty-body warning MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit smi_video.c: In function ‘SetAttrSAA7111’: smi_video.c:802:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body] if ((j&7) == 7) DEBUG("\n"); ^ Signed-off-by: Alan Coopersmith --- src/smi_video.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/smi_video.c b/src/smi_video.c index d418684..6266011 100644 --- a/src/smi_video.c +++ b/src/smi_video.c @@ -799,7 +799,9 @@ SetAttrSAA7111(ScrnInfoPtr pScrn, int i, int value) DEBUG("SAA7111 Registers\n"); for (j=0; j<32; j++) { DEBUG("%02X=%02X ", j, i2c_bytes[j]); - if ((j&7) == 7) DEBUG("\n"); + if ((j&7) == 7) { + DEBUG("\n"); + } } } -- cgit v1.2.3