diff options
author | geniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b <geniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864> | 2005-05-06 09:16:55 +0000 |
---|---|---|
committer | geniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b <geniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864> | 2005-05-06 09:16:55 +0000 |
commit | 6825c4c6dc0e88df7647275852227fcdc9f63b45 (patch) | |
tree | 03f3f67094403b7f004a37145280112ccad60e95 /src | |
parent | ea554c0f001e17abcd49827d1b4108a0ca229224 (diff) |
BUILD : 1.7.9 (783) BUGS : NOTES : Fixed most compiler warnings for the core (not modules) when using make strict
git-svn-id: svn://svn.anope.org/anope/trunk@783 31f1291d-b8d6-0310-a050-a5561fc1590b
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@543 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src')
-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 |
4 files changed, 5 insertions, 8 deletions
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); |