From 5400b86f94a27fec5dad85572f6fe0dc5a44febd Mon Sep 17 00:00:00 2001 From: Siraaj Khandkar Date: Mon, 9 Mar 2020 05:08:32 -0400 Subject: [PATCH] Enable extra warnings and remove unused variable --- x5/Makefile | 2 +- x5/khatus.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/x5/Makefile b/x5/Makefile index 816deff..98f210c 100644 --- a/x5/Makefile +++ b/x5/Makefile @@ -1,4 +1,4 @@ -CFLAGS := -Wall +CFLAGS := -Wall -Wextra LDLIBS := -lX11 EXECUTABLES := khatus diff --git a/x5/khatus.c b/x5/khatus.c index 3897b87..3cccf56 100644 --- a/x5/khatus.c +++ b/x5/khatus.c @@ -228,7 +228,7 @@ opts_parse_any(Config *cfg, int argc, char *argv[], int i) } void -opts_parse(Config *cfg, int argc, char *argv[], int i) +opts_parse(Config *cfg, int argc, char *argv[]) { opts_parse_any(cfg, argc, argv, 1); @@ -317,7 +317,7 @@ main(int argc, char *argv[]) argv0 = argv[0]; - opts_parse(cfg, argc, argv, 1); + opts_parse(cfg, argc, argv); debug("argv0 = %s\n", argv0); config_print(cfg); if (cfg->files == NULL) -- 2.20.1