]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Added -Wswitch -Wchar-subscripts -Wparentheses - more stable and more pedantic settin...
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Tue, 26 Apr 2005 01:25:07 +0000 (01:25 +0000)
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Tue, 26 Apr 2005 01:25:07 +0000 (01:25 +0000)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1191 e03df62e-2008-0410-955e-edbf42e46eb7

configure
src/modules/m_antibottler.cpp

index 0d744a8781e5b5e32ea54c5deeabfc7cb2a16878..2f0ec9ae73f973302ab6038223f98ea79c454cb3 100755 (executable)
--- a/configure
+++ b/configure
@@ -57,12 +57,12 @@ if [ "$1" = "-update" -o "$2" = "-update" ] ; then
    case "$OSNAME" in
            FreeBSD)
                    LDLIBS="-Ldl"
-                   FLAGS="-fPIC -frtti $OPTIMISATI -Wcomment -Wformat -Wunused -Wshadow -Werror"
+                   FLAGS="-fPIC -frtti $OPTIMISATI -Wcomment -Wformat -Wunused -Wshadow -Werror -Wswitch -Wchar-subscripts -Wparentheses"
                    MAKEPROG="gmake"
                    ;;
            *)
                    LDLIBS="-ldl"
-                   FLAGS="-fPIC -frtti $OPTIMISATI -Wcomment -Wformat -Wunused -Wshadow -Werror"
+                   FLAGS="-fPIC -frtti $OPTIMISATI -Wcomment -Wformat -Wunused -Wshadow -Werror -Wswitch -Wchar-subscripts -Wparentheses"
                    MAKEPROG="make"
                    ;;
    esac
index fb85bb7b1c1f449d9c505738e6d6672ef7d57eb3..3b57d9d093e7e9d1bd1a583adcef00990187cdd3 100644 (file)
@@ -53,10 +53,10 @@ class ModuleAntiBottler : public Module
                        {
                                for (int j = 0; j < strlen(data); j++)
                                {
-                                       if (data[j] = ':')
+                                       if (data[j] == ':')
                                                break;
                                                
-                                       if (data[j] = '"')
+                                       if (data[j] == '"')
                                        {
                                                not_bottler = true;
                                        }