[PATCH libinput 1/4] test: fix litest_log() when libunwind is missing
Peter Hutterer
peter.hutterer at who-t.net
Thu Jun 4 23:41:29 PDT 2015
Previous expansion had side-effects when litest_log was called in an if
condition without {}
Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
---
test/litest.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/test/litest.c b/test/litest.c
index c9c17d0..0e2cb96 100644
--- a/test/litest.c
+++ b/test/litest.c
@@ -61,8 +61,8 @@ const char *filter_group = NULL;
#define litest_log(...) fprintf(stderr, __VA_ARGS__)
#define litest_vlog(format_, args_) vfprintf(stderr, format_, args_)
#else
-#define litest_log(...) /* __VA_ARGS__ */
-#define litest_vlog(...) /* __VA_ARGS__ */
+#define litest_log(...) { /* __VA_ARGS__ */ }
+#define litest_vlog(...) { /* __VA_ARGS__ */ }
#endif
#ifdef HAVE_LIBUNWIND
--
2.4.1
More information about the wayland-devel
mailing list