Add more warnings
authorddennedy <ddennedy@d19143bc-622f-0410-bfdd-b5b2a6649095>
Fri, 10 Apr 2009 07:22:55 +0000 (07:22 +0000)
committerddennedy <ddennedy@d19143bc-622f-0410-bfdd-b5b2a6649095>
Fri, 10 Apr 2009 07:22:55 +0000 (07:22 +0000)
Signed-off-by: Ray Lehtiniemi <rayl@mail.com>

git-svn-id: https://mlt.svn.sourceforge.net/svnroot/mlt/trunk/mlt++@1388 d19143bc-622f-0410-bfdd-b5b2a6649095

mlt++/configure

index 9a3cb1b..8b099b3 100755 (executable)
@@ -33,6 +33,8 @@ echo "libdir=$libdir" >> config.mak
 targetos=$(uname -s)
 echo "targetos=$targetos" >> config.mak
 
+WARNINGS="-W -Wwrite-strings -Wcast-qual -Wpointer-arith -Wcast-align -Wredundant-decls"
+
 case $targetos in 
        Darwin)
                echo LIBSUF=.dylib
@@ -42,7 +44,7 @@ case $targetos in
                ;;
        Linux|FreeBSD)
                echo LIBSUF=.so
-               echo "CXXFLAGS+=-pthread -Wall -fPIC `pkg-config --cflags mlt-framework`"
+               echo "CXXFLAGS+=-pthread -Wall $WARNINGS -fPIC `pkg-config --cflags mlt-framework`"
                echo "LIBFLAGS=-shared"
                echo "LDFLAGS+=`pkg-config --libs mlt-framework` `pkg-config mlt-miracle --libs`"
                ;;