[Dctrl-tools-devel] dctrl-tools-experimental: GNUmakefile. ifile.c:
start using -Werror, fix one warning
Antti-Juhani Kaijanaho
ajk at debian.org
Sun Apr 8 16:01:24 UTC 2007
Sun Apr 8 18:59:07 EEST 2007 Antti-Juhani Kaijanaho <ajk at debian.org>
* GNUmakefile. ifile.c: start using -Werror, fix one warning
diff -rN -u old-dctrl-tools-experimental/GNUmakefile new-dctrl-tools-experimental/GNUmakefile
--- old-dctrl-tools-experimental/GNUmakefile 2007-04-08 19:01:23.000000000 +0300
+++ new-dctrl-tools-experimental/GNUmakefile 2007-04-08 19:01:23.000000000 +0300
@@ -4,7 +4,7 @@
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 -rN -u old-dctrl-tools-experimental/lib/ifile.c new-dctrl-tools-experimental/lib/ifile.c
--- old-dctrl-tools-experimental/lib/ifile.c 2007-04-08 19:01:23.000000000 +0300
+++ new-dctrl-tools-experimental/lib/ifile.c 2007-04-08 19:01:23.000000000 +0300
@@ -50,7 +50,7 @@
}
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);
More information about the Dctrl-tools-devel
mailing list