diff options
-rw-r--r-- | Changes | 1 | ||||
-rw-r--r-- | include/extern.h | 4 | ||||
-rw-r--r-- | src/botserv.c | 2 | ||||
-rw-r--r-- | src/config.c | 4 | ||||
-rw-r--r-- | src/modules.c | 5 | ||||
-rw-r--r-- | src/operserv.c | 2 | ||||
-rw-r--r-- | version.log | 6 |
7 files changed, 15 insertions, 9 deletions
@@ -1,5 +1,6 @@ Anope Version S V N ------------------- +05/06 F Compiler warnings when using make strict. [ #00] 05/06 F Segfault in os_clearmodes when chan had invites (+I) set. [#357] 05/06 F Identified founders are now logged out if the channel is dropped. [#364] 05/06 F Founders identified by pass can get founder chanmode again. [#358] diff --git a/include/extern.h b/include/extern.h index 1c951d801..a3929c85d 100644 --- a/include/extern.h +++ b/include/extern.h @@ -445,6 +445,8 @@ E int CloneWarningDelay; E int KillClones; E int AddAkiller; +E int parse_directive(Directive * d, char *dir, int ac, char *av[MAXPARAMS], int linenum, int reload, char *s); + /** * Modules Stuff **/ @@ -673,6 +675,7 @@ E void pmodule_limit_mode(int mode); E int anope_get_secret_mode(); E int anope_get_invite_mode(); +E int anope_get_key_mode(); E int anope_get_limit_mode(); E int anope_get_private_mode(); E int anope_get_invis_mode(); @@ -830,6 +833,7 @@ E char *str_signed(unsigned char *str); E void ntoa(struct in_addr addr, char *ipaddr, int len); /**** modules.c ****/ +E void modules_core_init(int number, char **list); E void moduleCallBackRun(void); E void moduleCleanStruct(ModuleData **moduleData); diff --git a/src/botserv.c b/src/botserv.c index 961f07cee..3ba8cdb91 100644 --- a/src/botserv.c +++ b/src/botserv.c @@ -138,8 +138,6 @@ void botchanmsgs(User * u, ChannelInfo * ci, char *buf) int16 cstatus = 0; char *cmd; UserData *ud; - int found = 0; - if (!u || !buf || !ci) { return; diff --git a/src/config.c b/src/config.c index 198860138..b6f0816e3 100644 --- a/src/config.c +++ b/src/config.c @@ -804,7 +804,7 @@ int parse_directive(Directive * d, char *dir, int ac, char *av[MAXPARAMS], int parse(char *buf, int linenum, int reload) { char *s, *t, *dir; - int i, n, optind, val; + int n; int retval = 1; int ac = 0; char *av[MAXPARAMS]; @@ -858,7 +858,7 @@ int parse(char *buf, int linenum, int reload) if (n == lenof(directives)) { /* error(linenum, "Unknown directive `%s'", dir); - return 1; /* don't cause abort */ + return 1; *//* don't cause abort */ } return retval; diff --git a/src/modules.c b/src/modules.c index 60dffdb10..a32845f27 100644 --- a/src/modules.c +++ b/src/modules.c @@ -1896,7 +1896,6 @@ void moduleDisplayHelp(int service, User * u) { #ifdef USE_MODULES int idx; - int header_shown = 0; ModuleHash *current = NULL; Module *calling_module = mod_current_module; char *calling_module_name = mod_current_module_name; @@ -2300,12 +2299,10 @@ int moduleGetConfigDirective(Directive * d) char *dir; char buf[1024]; int linenum = 0; - int i; - int optind = 0; int ac = 0; char *av[MAXPARAMS]; char *s, *t; - int retval; + int retval = 1; config = fopen(SERVICES_CONF, "r"); if (!config) { diff --git a/src/operserv.c b/src/operserv.c index 08b42ad15..c91edde67 100644 --- a/src/operserv.c +++ b/src/operserv.c @@ -84,7 +84,9 @@ SListOpts szopts = { 0, NULL, &is_szline_entry_equal, &free_szline_entry }; /*************************************************************************/ /* *INDENT-OFF* */ void moduleAddOperServCmds(void) { +#ifdef DEBUG_COMMANDS Command *c; +#endif modules_core_init(OperServCoreNumber, OperServCoreModules); diff --git a/version.log b/version.log index 18cadba85..fb7777f2d 100644 --- a/version.log +++ b/version.log @@ -8,10 +8,14 @@ VERSION_MAJOR="1" VERSION_MINOR="7" VERSION_PATCH="9" -VERSION_BUILD="782" +VERSION_BUILD="783" # $Log$ # +# BUILD : 1.7.9 (783) +# BUGS : +# NOTES : Fixed most compiler warnings for the core (not modules) when using make strict +# # BUILD : 1.7.9 (782) # BUGS : 357 # NOTES : Fixed a segfault in os_clearmodes when clearing invites -- it used the exception list for the invite hosts, not the invite list, which is bad :) |