summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntti-Juhani Kaijanaho <ajk@debian.org>2007-04-08 18:59:07 +0100
committerAntti-Juhani Kaijanaho <ajk@debian.org>2007-04-08 18:59:07 +0100
commita1b71a393ad94549be57b624c446f7b31ad1ae37 (patch)
treeaf0859a1fce1cd200a062c6c82b0de9e965a91e5
parent9ae611d0ac27ec7797c33bbb9699866ecaf30d56 (diff)
downloaddctrl-tools-a1b71a393ad94549be57b624c446f7b31ad1ae37.tar.gz
GNUmakefile. ifile.c: start using -Werror, fix one warning
-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);