Skip to contentSkip to conversation

analogy: Avoid warnings when CONFIG_XENO_DRIVERS_ANALOGY_DEBUG is off

PATCH New Jan Kiszka 1 participant 1 message Aug 22, 2024

lore
Share & tools
lore

Jan Kiszka

author
#0 lore raw

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]

---
 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
index 2adcb15b55..5980716e62 100644
@@ -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