diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2023-04-09 10:25:11 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2023-04-09 10:28:37 -0700 |
commit | 2a0606ca9d7984815c5dd5f087f7735819e7e8d1 (patch) | |
tree | 53ad7213cc31bec370b2fa100f0c91f4d66267cf | |
parent | 4e5a23aa55e5a85ae816616283e79c777d5a29fa (diff) |
Handle -Wempty-body warnings
Repeated for each call of the CACHED_UPDATE macro:
i128exa.c: In function ‘i128SetBufCtrl’:
i128exa.c:66:74: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
if (CACHE_DEBUG) I128_EXA_DEBUG(("Updated cache for " #reg "\n")); \
^
i128exa.c:89:5: note: in expansion of macro ‘CACHED_UPDATE’
CACHED_UPDATE(buf_ctrl, BUF_CTRL);
^~~~~~~~~~~~~
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r-- | src/i128exa.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/i128exa.c b/src/i128exa.c index bc37a87..c3d36f7 100644 --- a/src/i128exa.c +++ b/src/i128exa.c @@ -63,7 +63,7 @@ #define CACHED_UPDATE(val, reg) \ do if (pI128->val != val) { \ - if (CACHE_DEBUG) I128_EXA_DEBUG(("Updated cache for " #reg "\n")); \ + if (CACHE_DEBUG) { I128_EXA_DEBUG(("Updated cache for " #reg "\n")); } \ pI128->mem.rbase_a[reg] = pI128->val = val; \ } while (0) |