diff options
author | Orestis Floros <orestisf1993@gmail.com> | 2018-04-21 02:00:10 +0300 |
---|---|---|
committer | Orestis Floros <orestisf1993@gmail.com> | 2018-10-13 21:10:09 +0300 |
commit | 2a9522dda41ed05d5799180e2a00db5ec6373117 (patch) | |
tree | d662e015f6e8b91e47d6888659616f0e26b0b5a3 /i3-config-wizard | |
parent | a15fff2370105af288c1ebfb925a9f51274efc22 (diff) | |
download | i3-2a9522dda41ed05d5799180e2a00db5ec6373117.tar.gz i3-2a9522dda41ed05d5799180e2a00db5ec6373117.zip |
Enforce strict prototypes
i3 will now compile with no warnings when -Wstrict-prototypes is used.
Diffstat (limited to 'i3-config-wizard')
-rw-r--r-- | i3-config-wizard/main.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/i3-config-wizard/main.c b/i3-config-wizard/main.c index 988654d2..4b556657 100644 --- a/i3-config-wizard/main.c +++ b/i3-config-wizard/main.c @@ -104,7 +104,7 @@ static struct xkb_keymap *xkb_keymap; static uint8_t xkb_base_event; static uint8_t xkb_base_error; -static void finish(); +static void finish(void); #include "GENERATED_config_enums.h" @@ -482,7 +482,7 @@ static void txt(int col, int row, char *text, color_t fg, color_t bg) { * Handles expose events, that is, draws the window contents. * */ -static int handle_expose() { +static int handle_expose(void) { const color_t black = draw_util_hex_to_color("#000000"); const color_t white = draw_util_hex_to_color("#FFFFFF"); const color_t green = draw_util_hex_to_color("#00FF00"); @@ -641,7 +641,7 @@ static void handle_button_press(xcb_button_press_event_t *event) { * Creates the config file and tells i3 to reload. * */ -static void finish() { +static void finish(void) { printf("creating \"%s\"...\n", config_path); struct xkb_context *xkb_context; |