]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - configure
Added -Wswitch -Wchar-subscripts -Wparentheses - more stable and more pedantic settin...
[user/henk/code/inspircd.git] / configure
index 4cc51d6b53b383097f75e89b40d7c2123c181422..2f0ec9ae73f973302ab6038223f98ea79c454cb3 100755 (executable)
--- a/configure
+++ b/configure
@@ -26,6 +26,7 @@ NICK_LENGT=32
 CHAN_LENGT=64
 MAX_CHANNE=20
 MAXI_MODES=20
+HAS_STRLCPY=0
 OSNAME=`(uname -s) 2>/dev/null` || OSNAME="unknown"
 
 if [ -z $MAX_CLIENT_T ] ; then
@@ -56,12 +57,12 @@ if [ "$1" = "-update" -o "$2" = "-update" ] ; then
    case "$OSNAME" in
            FreeBSD)
                    LDLIBS="-Ldl"
-                   FLAGS="-fPIC -frtti $OPTIMISATI"
+                   FLAGS="-fPIC -frtti $OPTIMISATI -Wcomment -Wformat -Wunused -Wshadow -Werror -Wswitch -Wchar-subscripts -Wparentheses"
                    MAKEPROG="gmake"
                    ;;
            *)
                    LDLIBS="-ldl"
-                   FLAGS="-fPIC -frtti $OPTIMISATI"
+                   FLAGS="-fPIC -frtti $OPTIMISATI -Wcomment -Wformat -Wunused -Wshadow -Werror -Wswitch -Wchar-subscripts -Wparentheses"
                    MAKEPROG="make"
                    ;;
    esac