Add a bunch more warning flags to configure
authorBenjamin Otte <otte@redhat.com>
Thu, 11 Mar 2010 10:10:44 +0000 (11:10 +0100)
committerBenjamin Otte <otte@redhat.com>
Thu, 11 Mar 2010 10:10:44 +0000 (11:10 +0100)
None of these flags cause warnings anymore, so no fixes necessary.
The flags are:
 -Wformat-nonliteral
 -Wformat-security
 -Wold-style-definition
 -Wcast-align
 -Winline
 -Winit-self
 -Wmissing-include-dirs
 -Waddress
 -Waggregate-return
 -Wno-multichar
 -Wnested-externs

configure.ac

index edca1f9..ea74eca 100644 (file)
@@ -600,7 +600,7 @@ GST_PKG_DEPS="glib-2.0, gobject-2.0, gmodule-no-export-2.0, gthread-2.0"
 AC_SUBST(GST_PKG_DEPS)
 
 dnl define an ERROR_CFLAGS Makefile variable
-AG_GST_SET_ERROR_CFLAGS($GST_GIT, [-Wmissing-declarations -Wmissing-prototypes -Wredundant-decls -Wundef -Wwrite-strings])
+AG_GST_SET_ERROR_CFLAGS($GST_GIT, [-Wmissing-declarations -Wmissing-prototypes -Wredundant-decls -Wundef -Wwrite-strings -Wformat-nonliteral -Wformat-security -Wold-style-definition -Wcast-align -Winline -Winit-self -Wmissing-include-dirs -Waddress -Waggregate-return -Wno-multichar -Wnested-externs])
 
 dnl define correct level for debugging messages
 AG_GST_SET_LEVEL_DEFAULT($GST_GIT)