summaryrefslogtreecommitdiffstats
path: root/configure.ac.in
diff options
context:
space:
mode:
authorJeremy Kerr <jk@ozlabs.org>2013-03-05 13:49:15 +0800
committerGeoff Levand <geoff@infradead.org>2013-03-05 06:06:17 -0800
commitc0a0d427bdc0cf18940874e9aa34006da98d10a1 (patch)
tree67e4ddb4317d0d440fe3da107ed8dd92a96f6273 /configure.ac.in
parent59caf989e5e20f4a1238f23e512a586d5ba67de1 (diff)
downloadtalos-petitboot-c0a0d427bdc0cf18940874e9aa34006da98d10a1.tar.gz
talos-petitboot-c0a0d427bdc0cf18940874e9aa34006da98d10a1.zip
configure.ac: Add --enable-werror
Signed-off-by: Jeremy Kerr <jk@ozlabs.org> Signed-off-by: Geoff Levand <geoff@infradead.org>
Diffstat (limited to 'configure.ac.in')
-rw-r--r--configure.ac.in8
1 files changed, 8 insertions, 0 deletions
diff --git a/configure.ac.in b/configure.ac.in
index b1791cd..1f4a419 100644
--- a/configure.ac.in
+++ b/configure.ac.in
@@ -167,6 +167,14 @@ default_cflags="--std=gnu99 -g \
-Wall -W -Wunused -Wstrict-prototypes -Wmissing-prototypes \
-Wmissing-declarations -Wredundant-decls -Winline"
+AC_ARG_ENABLE(
+ [werror],
+ [AS_HELP_STRING([--enable-werror],
+ [build programs with -Werror]
+ )],
+ [default_cflags="$default_cflags -Werror"]
+)
+
AS_IF(
[test "x$enable_debug" = "xyes"],
[AC_SUBST([DEFAULT_CFLAGS], ["$default_cflags -O0 -DDEBUG"])],
OpenPOWER on IntegriCloud