CVS User Account cvsuser
Fri Aug 4 14:01:19 PDT 2006
Log Message:
-----------
Changes to address compiler -Wall warnings
 - Initialize some variables
 - Commented out functions/declarations that are unused

Modified Files:
--------------
    slony1-engine/src/slon:
        confoptions.c (r1.15 -> r1.16)
        scheduler.c (r1.23 -> r1.24)

-------------- next part --------------
Index: confoptions.c
===================================================================
RCS file: /usr/local/cvsroot/slony1/slony1-engine/src/slon/confoptions.c,v
retrieving revision 1.15
retrieving revision 1.16
diff -Lsrc/slon/confoptions.c -Lsrc/slon/confoptions.c -u -w -r1.15 -r1.16
--- src/slon/confoptions.c
+++ src/slon/confoptions.c
@@ -104,6 +104,7 @@
 }
 
 
+#ifdef NEED_ADD_CONF_VARIABLE
 static bool
 add_conf_variable(struct config_generic * var, int elevel)
 {
@@ -140,6 +141,7 @@
 		  sizeof(struct config_generic *), conf_var_compare);
 	return true;
 }
+#endif
 
 void
 InitializeConfOptions(void)
@@ -436,7 +438,7 @@
 		case SLON_C_BOOL:
 			{
 				struct config_bool *conf = (struct config_bool *) record;
-				bool		newval;
+				bool		newval = FALSE;
 
 				if (value)
 				{
@@ -458,7 +460,7 @@
 		case SLON_C_INT:
 			{
 				struct config_int *conf = (struct config_int *) record;
-				int			newval;
+				int			newval=0;
 
 				if (value)
 				{
@@ -484,7 +486,7 @@
 		case SLON_C_REAL:
 			{
 				struct config_real *conf = (struct config_real *) record;
-				double		newval;
+				double		newval = 0;
 
 				if (value)
 				{
Index: scheduler.c
===================================================================
RCS file: /usr/local/cvsroot/slony1/slony1-engine/src/slon/scheduler.c,v
retrieving revision 1.23
retrieving revision 1.24
diff -Lsrc/slon/scheduler.c -Lsrc/slon/scheduler.c -u -w -r1.23 -r1.24
--- src/slon/scheduler.c
+++ src/slon/scheduler.c
@@ -62,7 +62,7 @@
 static void *sched_mainloop(void *);
 static void sched_add_fdset(int fd, fd_set * fds);
 static void sched_remove_fdset(int fd, fd_set * fds);
-static void sched_shutdown();
+/* static void sched_shutdown(); */
 
 
 /* ----------



More information about the Slony1-commit mailing list