mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/kdave/btrfs-progs.git
synced 2024-11-25 05:04:14 +08:00
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>
This commit is contained in:
parent
3b991b604f
commit
20ec15e732
@ -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, ...) \
|
||||
|
Loading…
Reference in New Issue
Block a user