From 3a22e6a6c5ad10e8c5cb9abb3615d2a8867d63e9 Mon Sep 17 00:00:00 2001 From: N-R-K Date: Tue, 3 May 2022 15:36:57 +0000 Subject: Declare every extern function/variable in `nsxiv.h` (#268) with a couple exceptions as they cause too many -Wshadow warnings. also moves the `extcmd_t` typedef on top for cosmetic purposes. also enable `-Wmissing-prototypes` in the ci --- commands.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'commands.h') diff --git a/commands.h b/commands.h index b78157d..74e2638 100644 --- a/commands.h +++ b/commands.h @@ -44,6 +44,7 @@ bool ct_scroll(arg_t); bool ct_drag_mark_image(arg_t); bool ct_select(arg_t); +#ifdef _MAPPINGS_CONFIG /* global */ #define g_change_gamma { cg_change_gamma, MODE_ALL } #define g_first { cg_first, MODE_ALL } @@ -88,4 +89,5 @@ bool ct_select(arg_t); #define t_drag_mark_image { ct_drag_mark_image, MODE_THUMB } #define t_select { ct_select, MODE_THUMB } +#endif /* _MAPPINGS_CONFIG */ #endif /* COMMANDS_H */ -- cgit v1.2.3-54-g00ecf