Browse Source

Apparently having #ifdefs around variable assignment may result in false unused warns xd

Wazakindjes 5 years ago
parent
commit
db8dda342d
1 changed files with 2 additions and 2 deletions
  1. 2 2
      br0ken/m_modmgmt.c

+ 2 - 2
br0ken/m_modmgmt.c

@@ -226,7 +226,7 @@ int _modmgmt_main(char *command, aClient *cptr, aClient *sptr, int parc, char *p
 	for(i = 1; parv[i]; i++) {
 		// Reinitialise em
 		retU = 0;
-		file = retHook = retL = err = type = NULL;
+		/*file = */retHook = retL = err = type = NULL;
 		mi = NULL;
 
 		// In case people enter shit like chanmodes/floodprot, also get a pointer to the (last) slash
@@ -417,7 +417,7 @@ char *runnemHewks(char *name, char *fullname, aClient *sptr, int reload) {
 					errors++;
 					break;
 				}
-				//int used = 0; // Known directive check
+				int used = 0; // Known directive check
 				int errs = 0; // Error count of below function
 				int value = (*(h->func.intfunc))(cfptr, ce, CONFIG_MAIN, &errs);
 				if(value == 2)