diff options
author | Mattias Andrée <maandree@operamail.com> | 2013-06-26 02:28:20 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2013-06-26 02:28:20 +0200 |
commit | 84b9912ac3018801acac75172b3d311c710409e3 (patch) | |
tree | f2cf8b092f03440fcb8a4199d43ceac6471d6cf1 | |
parent | fix -Wextra warnings (diff) | |
download | argparser-84b9912ac3018801acac75172b3d311c710409e3.tar.gz argparser-84b9912ac3018801acac75172b3d311c710409e3.tar.bz2 argparser-84b9912ac3018801acac75172b3d311c710409e3.tar.xz |
fix -pedantic warnings
Signed-off-by: Mattias Andrée <maandree@operamail.com>
-rw-r--r-- | src/argparser.c | 4 |
1 files changed, 2 insertions, 2 deletions
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"); |