[PATCH] nebmods.c:155:6: warning: variable ‘result’ set but not used [-Wunused-but-set-variable]

Ricardo Maraschini ricardo.maraschini at opservices.com.br
Fri Jun 22 18:27:12 CEST 2012


Hi,

As we are not checking the return of neb_load_all_modules() at nagios.c, we don't need to have a var to store the return of neb_load_module().

OK? Comments?


===================================================================
--- base/nebmods.c	(revision 1973)
+++ base/nebmods.c	(working copy)
@@ -152,10 +152,9 @@
 /* load all modules */
 int neb_load_all_modules(void) {
 	nebmodule *temp_module = NULL;
-	int result = OK;
 
 	for(temp_module = neb_module_list; temp_module; temp_module = temp_module->next) {
-		result = neb_load_module(temp_module);
+		neb_load_module(temp_module);
 		}
 
 	return OK;

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/




More information about the Developers mailing list