From 6330833fd10f97a6721470ceb037a224aa720b8f Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Sun, 12 May 2024 14:42:27 -0700 Subject: Take care of -Wempty-body warning from call to empty PS2DBG macro MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Part-of: --- src/ps2comm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 /***************************************************************************** -- cgit v1.2.3