analogy: Avoid warnings when CONFIG_XENO_DRIVERS_ANALOGY_DEBUG is off
PATCH 1/1 analogy: Avoid warnings when CONFIG_XENO_DRIVERS_ANALOGY_DEBUG is off
From: Jan Kiszka <[email protected]>
Provide an empty statement to avoid warnings like
drivers/xenomai/analogy/testing/fake.c:642:71: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
Reported-by Florian Bezdeka <[email protected]>
Signed-off-by Jan Kiszka <[email protected]>
--- include/cobalt/kernel/rtdm/analogy/rtdm_helpers.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
include/cobalt/kernel/rtdm/analogy/rtdm_helpers.h +1 -1
@@ -65,7 +65,7 @@#else /* !CONFIG_XENO_DRIVERS_ANALOGY_DEBUG */ -#define __a4l_dbg(level, debug, fmt, args...) +#define __a4l_dbg(level, debug, fmt, args...) do {} while (0)#endif /* CONFIG_XENO_DRIVERS_ANALOGY_DEBUG */
Signature · 1 line
2.43.0