btrfs-progs: Fix Wempty-body warning

messages.h:49:24: warning: suggest braces around empty body in an 'if' statement [-Wempty-body]
    PRINT_TRACE_ON_ERROR;    \

Use empty statement in the macro defintions that are now empty.

Signed-off-by: Qu Wenruo <wqu@suse.com>
Reviewed-by: Nikolay Borisov <nborisov@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
master
Qu Wenruo 2018-12-05 14:40:09 +08:00 committed by David Sterba
parent 3b991b604f
commit 20ec15e732
1 changed files with 2 additions and 2 deletions

View File

@ -26,13 +26,13 @@
#ifdef DEBUG_TRACE_ON_ERROR
#define PRINT_TRACE_ON_ERROR print_trace()
#else
#define PRINT_TRACE_ON_ERROR
#define PRINT_TRACE_ON_ERROR do { } while (0)
#endif
#ifdef DEBUG_ABORT_ON_ERROR
#define DO_ABORT_ON_ERROR abort()
#else
#define DO_ABORT_ON_ERROR
#define DO_ABORT_ON_ERROR do { } while (0)
#endif
#define error(fmt, ...) \