From 84b9912ac3018801acac75172b3d311c710409e3 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Wed, 26 Jun 2013 02:28:20 +0200 Subject: fix -pedantic warnings MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/argparser.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/argparser.c b/src/argparser.c index 908c16a..276a412 100644 --- a/src/argparser.c +++ b/src/argparser.c @@ -540,7 +540,7 @@ extern long args_get_optmap_count() */ extern void args_optmap_put(char* name, long index) { - return map_put(&args_optmap, name, (void*)(index + 1)); + map_put(&args_optmap, name, (void*)(index + 1)); } /** @@ -781,8 +781,8 @@ extern long args_test_allowed(char** allowed, long allowed_count) if ((allowed == a) || (cmp(*opts, *allowed) < 0)) if (args_opts_used(*opts)) { - fprintf(args_out, "%s: option used out of context: %s", args_program, *opts); char* std = args_optmap_get_standard(*opts); + fprintf(args_out, "%s: option used out of context: %s", args_program, *opts); if (cmp(std, *opts) != 0) fprintf(args_out, "(%s)", std); fprintf(args_out, "\n"); -- cgit v1.2.3-70-g09d2