Add a bunch of warning flags
authorBenjamin Otte <otte@redhat.com>
Tue, 23 Mar 2010 00:14:33 +0000 (01:14 +0100)
committerBenjamin Otte <otte@redhat.com>
Tue, 23 Mar 2010 00:16:26 +0000 (01:16 +0100)
None of them trigger any warning

configure.ac

index 3492695..2a16b14 100644 (file)
@@ -239,14 +239,18 @@ dnl set location of plugin directory
 AG_GST_SET_PLUGINDIR
 
 dnl define an ERROR_CFLAGS Makefile variable
+dnl -Waggregate-return - libexif returns aggregates
 AG_GST_SET_ERROR_CFLAGS($GST_GIT, [
     -Wmissing-declarations -Wmissing-prototypes -Wredundant-decls -Wundef
-    -Wwrite-strings -Wformat-nonliteral -Wformat-security -Wold-style-definition ])
+    -Wwrite-strings -Wformat-nonliteral -Wformat-security -Wold-style-definition
+    -Wcast-align -Winit-self -Wmissing-include-dirs -Waddress -Wno-multichar
+    -Wnested-externs])
 
 dnl define an ERROR_CXXFLAGS Makefile variable
 AG_GST_SET_ERROR_CXXFLAGS($GST_GIT, [
     -Wmissing-declarations -Wredundant-decls -Wundef
-    -Wwrite-strings -Wformat-nonliteral -Wformat-security ])
+    -Wwrite-strings -Wformat-nonliteral -Wformat-security
+    -Wcast-align -Winit-self -Wmissing-include-dirs -Waddress -Wno-multichar ])
 
 dnl define correct level for debugging messages
 AG_GST_SET_LEVEL_DEFAULT($GST_GIT)