mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-01-02 00:30:10 +01:00
test: fix litest_log() when libunwind is missing
Previous expansion had side-effects when litest_log was called in an if
condition without {}
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
This commit is contained in:
parent
bd4f129a2a
commit
36753fae8f
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue