diff --git a/common/action_tapping.c b/common/action_tapping.c index a3a5a7d0..a74eb106 100644 --- a/common/action_tapping.c +++ b/common/action_tapping.c @@ -256,7 +256,7 @@ bool process_tapping(keyrecord_t *keyp) return true; } } else { - if (!IS_NOEVENT(event)) debug("Tapping: other key just after tap.\n") {}; + if (!IS_NOEVENT(event)) debug("Tapping: other key just after tap.\n"); process_action(keyp); return true; } diff --git a/common/debug.h b/common/debug.h index 3cbe2092..a8fd28db 100644 --- a/common/debug.h +++ b/common/debug.h @@ -89,28 +89,28 @@ extern debug_config_t debug_config; #else /* NO_DEBUG */ -#define dprint(s) -#define dprintln(s) -#define dprintf(fmt, ...) -#define dmsg(s) -#define debug(s) -#define debugln(s) -#define debug_msg(s) -#define debug_dec(data) -#define debug_decs(data) -#define debug_hex4(data) -#define debug_hex8(data) -#define debug_hex16(data) -#define debug_hex32(data) -#define debug_bin8(data) -#define debug_bin16(data) -#define debug_bin32(data) -#define debug_bin_reverse8(data) -#define debug_bin_reverse16(data) -#define debug_bin_reverse32(data) -#define debug_hex(data) -#define debug_bin(data) -#define debug_bin_reverse(data) +#define dprint(s) ((void)0) +#define dprintln(s) ((void)0) +#define dprintf(fmt, ...) ((void)0) +#define dmsg(s) ((void)0) +#define debug(s) ((void)0) +#define debugln(s) ((void)0) +#define debug_msg(s) ((void)0) +#define debug_dec(data) ((void)0) +#define debug_decs(data) ((void)0) +#define debug_hex4(data) ((void)0) +#define debug_hex8(data) ((void)0) +#define debug_hex16(data) ((void)0) +#define debug_hex32(data) ((void)0) +#define debug_bin8(data) ((void)0) +#define debug_bin16(data) ((void)0) +#define debug_bin32(data) ((void)0) +#define debug_bin_reverse8(data) ((void)0) +#define debug_bin_reverse16(data) ((void)0) +#define debug_bin_reverse32(data) ((void)0) +#define debug_hex(data) ((void)0) +#define debug_bin(data) ((void)0) +#define debug_bin_reverse(data) ((void)0) #endif /* NO_DEBUG */ diff --git a/common/print.h b/common/print.h index 5f491aba..9eec9191 100644 --- a/common/print.h +++ b/common/print.h @@ -99,35 +99,35 @@ void print_set_sendchar(int8_t (*print_sendchar_func)(uint8_t)); #else /* NO_PRINT */ -#define xprintf(s,...) -#define print(s) -#define println(s) -#define print_set_sendchar(func) -#define print_dec(data) -#define print_decs(data) -#define print_hex4(data) -#define print_hex8(data) -#define print_hex16(data) -#define print_hex32(data) -#define print_bin4(data) -#define print_bin8(data) -#define print_bin16(data) -#define print_bin32(data) -#define print_bin_reverse8(data) -#define print_bin_reverse16(data) -#define print_bin_reverse32(data) -#define print_val_dec(v) -#define print_val_decs(v) -#define print_val_hex8(v) -#define print_val_hex16(v) -#define print_val_hex32(v) -#define print_val_bin8(v) -#define print_val_bin16(v) -#define print_val_bin32(v) -#define print_val_bin_reverse8(v) -#define print_val_bin_reverse16(v) -#define print_val_bin_reverse32(v) -#define init_printf(s,ss) +#define xprintf(s,...) ((void)0) +#define print(s) ((void)0) +#define println(s) ((void)0) +#define print_set_sendchar(func) ((void)0) +#define print_dec(data) ((void)0) +#define print_decs(data) ((void)0) +#define print_hex4(data) ((void)0) +#define print_hex8(data) ((void)0) +#define print_hex16(data) ((void)0) +#define print_hex32(data) ((void)0) +#define print_bin4(data) ((void)0) +#define print_bin8(data) ((void)0) +#define print_bin16(data) ((void)0) +#define print_bin32(data) ((void)0) +#define print_bin_reverse8(data) ((void)0) +#define print_bin_reverse16(data) ((void)0) +#define print_bin_reverse32(data) ((void)0) +#define print_val_dec(v) ((void)0) +#define print_val_decs(v) ((void)0) +#define print_val_hex8(v) ((void)0) +#define print_val_hex16(v) ((void)0) +#define print_val_hex32(v) ((void)0) +#define print_val_bin8(v) ((void)0) +#define print_val_bin16(v) ((void)0) +#define print_val_bin32(v) ((void)0) +#define print_val_bin_reverse8(v) ((void)0) +#define print_val_bin_reverse16(v) ((void)0) +#define print_val_bin_reverse32(v) ((void)0) +#define init_printf(s,ss) ((void)0) #endif /* NO_PRINT */