diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2024-05-12 14:42:27 -0700 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2024-05-12 23:03:21 +0000 |
commit | 6330833fd10f97a6721470ceb037a224aa720b8f (patch) | |
tree | fbe9b34864d8bfc83a05fc20f4c4a9c586210de4 | |
parent | 7e68eb70ca5139d5b4c8a07791323866308530a0 (diff) |
Take care of -Wempty-body warning from call to empty PS2DBG macro
ps2comm.c: In function ‘ps2_synaptics_get_packet’:
ps2comm.c:477:49: warning: suggest braces around empty body in an ‘else’ statement [-Wempty-body]
477 | PS2DBG("faked reset received\n");
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-input-synaptics/-/merge_requests/17>
-rw-r--r-- | src/ps2comm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ps2comm.c b/src/ps2comm.c index 887e2e0..0aa33f8 100644 --- a/src/ps2comm.c +++ b/src/ps2comm.c @@ -78,7 +78,7 @@ #ifdef DEBUG #define PS2DBG(...) ErrorF(__VA_ARGS__) #else -#define PS2DBG(...) +#define PS2DBG(...) do { } while (0) #endif /***************************************************************************** |