INN commit: trunk (innd/art.c innd/innd.c nnrpd/perm.c)

INN Commit rra at isc.org
Sun Jul 31 09:50:16 UTC 2011


    Date: Sunday, July 31, 2011 @ 02:50:15
  Author: iulius
Revision: 9295

fix gcc 4.6.1 warnings about unused variables

Modified:
  trunk/innd/art.c
  trunk/innd/innd.c
  trunk/nnrpd/perm.c

--------------+
 innd/art.c   |    9 ++++++---
 innd/innd.c  |    8 ++++++--
 nnrpd/perm.c |    7 ++++++-
 3 files changed, 18 insertions(+), 6 deletions(-)

Modified: innd/art.c
===================================================================
--- innd/art.c	2011-07-27 20:01:17 UTC (rev 9294)
+++ innd/art.c	2011-07-31 09:50:15 UTC (rev 9295)
@@ -1949,20 +1949,23 @@
   bool		IsControl = false;
   bool		Filtered = false;
   bool          ihave;
-  struct buffer	*article;
   HASH		hash;
   TOKEN		token;
   char		*groupbuff[2];
 #if defined(DO_PERL) || defined(DO_PYTHON)
+  struct buffer *article;
   char		*filterrc;
-#endif /* defined(DO_PERL) || defined(DO_PYTHON) */
+#endif
   OVADDRESULT	result;
 
   /* Check whether we are receiving the article via IHAVE or TAKETHIS. */
   ihave = (cp->Sendid.size > 3) ? false : true;
 
+#if defined(DO_PERL) || defined(DO_PYTHON)
+  article = &cp->In;
+#endif
+
   /* Preliminary clean-ups. */
-  article = &cp->In;
   artclean = ARTclean(data, cp->Error, ihave);
 
   /* We have not parsed the Path: header yet.  We do not check for logipaddr

Modified: innd/innd.c
===================================================================
--- innd/innd.c	2011-07-27 20:01:17 UTC (rev 9294)
+++ innd/innd.c	2011-07-31 09:50:15 UTC (rev 9295)
@@ -356,14 +356,16 @@
     bool		ShouldFork;
     bool		ShouldRenumber;
     bool		ShouldSyntaxCheck;
-    bool		filter = true;
     pid_t		pid;
-#if	defined(_DEBUG_MALLOC_INC)
+#if defined(_DEBUG_MALLOC_INC)
     union malloptarg	m;
 #endif	/* defined(_DEBUG_MALLOC_INC) */
 #if DO_PERL
     char                *path1, *path2;
 #endif
+#if defined(DO_PERL) || defined(DO_PYTHON)
+    bool                filter = true;
+#endif
 
     /* Set up the pathname, first thing, and teach our error handlers about
        the name of the program. */
@@ -466,7 +468,9 @@
                                     "ed from the command line", (char *) 0);
 	    break;
 	case 'N':
+#if defined(DO_PERL) || defined(DO_PYTHON)
 	    filter = false;
+#endif
 	    break;
 	case 'n':
 	    switch (*optarg) {

Modified: nnrpd/perm.c
===================================================================
--- nnrpd/perm.c	2011-07-27 20:01:17 UTC (rev 9294)
+++ nnrpd/perm.c	2011-07-31 09:50:15 UTC (rev 9295)
@@ -625,7 +625,10 @@
 static void
 authdecl_parse(AUTHGROUP *curauth, CONFFILE *f, CONFTOKEN *tok)
 {
-    int oldtype,boolval;
+    int oldtype;
+#ifdef HAVE_SSL
+    int boolval;
+#endif
     METHOD *m;
     bool bit;
     char buff[SMBUF], *oldname, *p;
@@ -645,6 +648,7 @@
 	ReportError(f, buff);
     }
 
+#ifdef HAVE_SSL
     if (strcasecmp(tok->name, "on") == 0
         || strcasecmp(tok->name, "true") == 0
         || strcasecmp(tok->name, "yes") == 0)
@@ -655,6 +659,7 @@
 	boolval = false;
     else
 	boolval = -1;
+#endif
 
     switch (oldtype) {
       case PERMkey:




More information about the inn-committers mailing list