configure.ac: use GST_SET_ERROR_CFLAGS
authorThomas Vander Stichele <thomas@apestaart.org>
Fri, 8 Jul 2005 14:35:57 +0000 (14:35 +0000)
committerThomas Vander Stichele <thomas@apestaart.org>
Fri, 8 Jul 2005 14:35:57 +0000 (14:35 +0000)
Original commit message from CVS:

* configure.ac:
use GST_SET_ERROR_CFLAGS
* docs/faq/cvs.xml:
change to ERROR_CFLAGS

ChangeLog
common
configure.ac
docs/faq/cvs.xml

index 95fbfe2..28d50e5 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,13 @@
 2005-07-08  Thomas Vander Stichele  <thomas at apestaart dot org>
 
        * configure.ac:
+         use GST_SET_ERROR_CFLAGS
+       * docs/faq/cvs.xml:
+         change to ERROR_CFLAGS
+
+2005-07-08  Thomas Vander Stichele  <thomas at apestaart dot org>
+
+       * configure.ac:
          make GST_ERROR_CFLAGS overridable and re-enable Werror
        * docs/faq/cvs.xml:
          add a note about error CFLAGS
diff --git a/common b/common
index 221ac8a..ac7272b 160000 (submodule)
--- a/common
+++ b/common
@@ -1 +1 @@
-Subproject commit 221ac8abacb46858382a9f8c924152ae588f4a2e
+Subproject commit ac7272b7af934c2294a44ac1c0f3fac3f8d17ec6
index 224613b..58496db 100644 (file)
@@ -56,17 +56,7 @@ AS_AC_EXPAND(LIBDIR, $libdir)
 AC_DEFINE_UNQUOTED([LIBDIR], "$LIBDIR",
                    [library dir])
 
-dnl decide on error flags
-dnl if we support -Wall, set it unconditionally
-AS_COMPILER_FLAG(-Wall,
-                 GST_ERROR_CFLAGS="-Wall",
-                 GST_ERROR_CFLAGS="")
-dnl if we're in nano >= 1, add -Werror if supported
-if test "x$GST_CVS" = "xyes"
-then
-  AS_COMPILER_FLAG(-Werror, GST_ERROR_CFLAGS="$GST_ERROR_CFLAGS -Werror")
-fi
-AC_SUBST(GST_ERROR_CFLAGS)
+GST_SET_ERROR_CFLAGS($GST_CVS)
 
 dnl We disable static building for development, for time savings
 dnl *NOTE*: dnl this line before release, so release does static too
index a424e3b..738675e 100644 (file)
@@ -125,7 +125,7 @@ CVS and prereleases so that people actually notice and fix problems found by
         <para>
 If for any reason you want to bypass these flags and you are certain it's the
 right thing to do, you can run
-<programlisting>make GST_ERROR_CFLAGS="</programlisting>
+<programlisting>make ERROR_CFLAGS="</programlisting>
 to clear the CFLAGS for error checking.
         </para>
       </answer>