projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix -Wmissing-declarations warnings in filter-parser.y
[lttng-tools.git]
/
configure.ac
diff --git
a/configure.ac
b/configure.ac
index 2bb30edb325316b64307d67a9e968a5aa280e7c4..0614b270efcfa42e3c64856603a9143dd9998cc6 100644
(file)
--- a/
configure.ac
+++ b/
configure.ac
@@
-36,6
+36,14
@@
AX_APPEND_COMPILE_FLAGS([ dnl
[WARN_CFLAGS],
[-Werror])
[WARN_CFLAGS],
[-Werror])
+# When given, add -Werror to WARN_CFLAGS.
+AC_ARG_ENABLE([Werror],
+ [AS_HELP_STRING([--enable-Werror], [Treat compiler warnings as errors.])]
+)
+AS_IF([test "x$enable_Werror" = "xyes"],
+ [WARN_CFLAGS="${WARN_CFLAGS} -Werror"]
+)
+
# Checks for programs.
AC_PROG_GREP
AC_PROG_MAKE_SET
# Checks for programs.
AC_PROG_GREP
AC_PROG_MAKE_SET
This page took
0.023512 seconds
and
4
git commands to generate.