summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-04-26 01:25:07 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-04-26 01:25:07 +0000
commit15ec8bd3773cff3bb8cd36c5890569fdc19e1356 (patch)
tree609363ba40238c8d2c6b776bc0afc0dbeef5a504
parentb6f5d703b010fa5e4cd1d082ea70fe0cc27fb9e9 (diff)
Added -Wswitch -Wchar-subscripts -Wparentheses - more stable and more pedantic settings :)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1191 e03df62e-2008-0410-955e-edbf42e46eb7
-rwxr-xr-xconfigure4
-rw-r--r--src/modules/m_antibottler.cpp4
2 files changed, 4 insertions, 4 deletions
diff --git a/configure b/configure
index 0d744a878..2f0ec9ae7 100755
--- 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
diff --git a/src/modules/m_antibottler.cpp b/src/modules/m_antibottler.cpp
index fb85bb7b1..3b57d9d09 100644
--- a/src/modules/m_antibottler.cpp
+++ b/src/modules/m_antibottler.cpp
@@ -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;
}