aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--config.mk2
-rw-r--r--src/options.cpp4
2 files changed, 3 insertions, 3 deletions
diff --git a/config.mk b/config.mk
index e5a1de1..6a0699f 100644
--- a/config.mk
+++ b/config.mk
@@ -2,4 +2,4 @@ PROGRAM_NAME = diff-dd
PROGRAM_VERSION = 2.0.0
CC=g++
-CFLAGS=-Wall -std=c++11
+CFLAGS=-Wall -Wextra -std=c++11
diff --git a/src/options.cpp b/src/options.cpp
index 632076a..51a9260 100644
--- a/src/options.cpp
+++ b/src/options.cpp
@@ -57,7 +57,7 @@ static bool options_parse_backup(int *const argc, char ***const argv,
options_t *const opts);
static bool options_parse_restore(int *const argc, char ***const argv,
options_t *const opts);
-static const char *const next_arg(char ***const argv);
+static const char *next_arg(char ***const argv);
bool
options_parse(int argc, char **argv, options_t *const opts)
@@ -270,7 +270,7 @@ options_parse_restore(int *const argc, char ***const argv,
return true;
}
-static const char *const
+static const char *
next_arg(char ***const argv)
{
const char *arg = **argv;