aboutsummaryrefslogtreecommitdiff
path: root/src/options.c
diff options
context:
space:
mode:
authorToni Uhlig <matzeton@googlemail.com>2020-03-14 18:44:39 +0100
committerToni Uhlig <matzeton@googlemail.com>2020-03-14 18:44:39 +0100
commit1e8037d84d01ef605b667f8db42f3c95831d7920 (patch)
tree0d1323c7b1ceaa461fc555010182747e1ff8fbb5 /src/options.c
parentd727de62e14a48ef5da16d034549a76909303209 (diff)
improved icmp/forward descriptor structs and use -Wextra for all builds
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to 'src/options.c')
-rw-r--r--src/options.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/options.c b/src/options.c
index 69d842c..5f2de0f 100644
--- a/src/options.c
+++ b/src/options.c
@@ -262,6 +262,8 @@ static struct option long_options[] = {
static const void *get_default_optval(enum option_type opttype, const char *optname) {
+ (void) opttype;
+
for (unsigned i = 0; i < ARRAY_SIZE(long_options); ++i) {
if (strncmp(long_options[i].name, optname, BUFSIZ /* not optimal */) == 0 &&
strlen(long_options[i].name) == strlen(optname))