summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--GNUmakefile2
-rw-r--r--lib/ifile.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/GNUmakefile b/GNUmakefile
index e8eced9..5934c46 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -4,7 +4,7 @@ localedir = /usr/share/locale
version := $(shell dpkg-parsechangelog | grep '^Version' | cut -b10-)
CC = gcc -std=gnu99
-CFLAGS = -g -Wall -Ilib \
+CFLAGS = -g -Wall -Werror -Ilib \
-DENABLE_L_DEBUG -D_GNU_SOURCE -DSYSCONF=\"$(sysconfdir)\" \
-DHAVE_GETTEXT -DPACKAGE=\"dctrl-tools\" -DLOCALEDIR=\"$(localedir)\"
diff --git a/lib/ifile.c b/lib/ifile.c
index b44b708..da67919 100644
--- a/lib/ifile.c
+++ b/lib/ifile.c
@@ -50,7 +50,7 @@ static int open_pipe(char const * s)
}
close(ps[0]);
close(ps[1]);
- execl("/bin/sh", "/bin/sh", "-c", s, 0);
+ execl("/bin/sh", "/bin/sh", "-c", s, (char*)0);
fprintf(stderr, _("%s (child): failed to exec /bin/sh: %s\n"),
get_progname(), strerror(errno));
_exit(1);