diff options
author | Colin Walters <walters@verbum.org> | 2012-01-17 16:23:33 -0500 |
---|---|---|
committer | Tim-Philipp Müller <tim.muller@collabora.co.uk> | 2012-01-19 13:45:06 +0000 |
commit | 8accd77659d6eb99b39b31c76eff9c569b9242b6 (patch) | |
tree | 757fb85d7315ea4b83b48fb3accc3b19a618bedd | |
parent | 4f697df84c669ad1517fd1e4e8d3b76d1896328f (diff) |
build: add --disable-fatal-warnings configure option
It's reasonable to build from git, but not want to turn all compiler
warnings into fatal errors. For example, GNOME's jhbuild helps people
get newer versions of software than came from their distribution, but
they may not necessarily want to hack on it.
m--------- | common | 0 | ||||
-rw-r--r-- | configure.ac | 4 |
2 files changed, 3 insertions, 1 deletions
diff --git a/common b/common -Subproject e4a9407a51803016bab9918b03e2034981886bd +Subproject 17fa4abf49d31cf5dcc2994bdbaa86e45a3fb69 diff --git a/configure.ac b/configure.ac index 7a4d05217c..90daf079b9 100644 --- a/configure.ac +++ b/configure.ac @@ -74,6 +74,8 @@ AG_GST_GETTEXT([gstreamer-$GST_MAJORMINOR]) dnl *** check for arguments to configure *** +AG_GST_ARG_DISABLE_FATAL_WARNINGS + dnl subsystems - can influence other decisions so needs to be high up dnl we need to AM_CONDITIONAL them here for automake 1.6.x compatibility AG_GST_CHECK_SUBSYSTEM_DISABLE(GST_DEBUG,[debugging subsystem]) @@ -646,7 +648,7 @@ if test "x${GST_DISABLE_GST_DEBUG}" = "xyes"; then fi dnl define an ERROR_CFLAGS Makefile variable -AG_GST_SET_ERROR_CFLAGS($GST_GIT, [-Wmissing-declarations -Wmissing-prototypes -Wredundant-decls -Wundef -Wwrite-strings -Wformat-nonliteral -Wformat-security -Wold-style-definition -Winit-self -Wmissing-include-dirs -Waddress -Waggregate-return -Wno-multichar -Wnested-externs $NO_WARNINGS]) +AG_GST_SET_ERROR_CFLAGS($FATAL_WARNINGS, [-Wmissing-declarations -Wmissing-prototypes -Wredundant-decls -Wundef -Wwrite-strings -Wformat-nonliteral -Wformat-security -Wold-style-definition -Winit-self -Wmissing-include-dirs -Waddress -Waggregate-return -Wno-multichar -Wnested-externs $NO_WARNINGS]) dnl define correct level for debugging messages AG_GST_SET_LEVEL_DEFAULT($GST_GIT) |