From 0a8320fdb4b7ced5cfc4944aa2dccd473150398e Mon Sep 17 00:00:00 2001 From: Jan Sucan Date: Fri, 2 Feb 2024 15:59:49 +0100 Subject: config.mk: Enable extra compiler warnings --- config.mk | 2 +- src/options.cpp | 4 ++-- 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; -- cgit v1.2.3