summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2022-12-08 18:03:11 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2022-12-15 08:50:50 -0800
commit8cddfb1205dd000e5071c237fbbda84656149242 (patch)
tree7a3c032b5f15c67c7ad487922e403bfa92f0793f
parent7c145c65e2feaf6ea63fdfba67bf7c0cd44b2fbe (diff)
Quiet -Wempty-body warning
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 <alan.coopersmith@oracle.com>
-rw-r--r--src/smi_video.c4
1 files changed, 3 insertions, 1 deletions
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");
+ }
}
}