From: wessels <> Date: Wed, 8 Apr 1998 11:44:11 +0000 (+0000) Subject: protect parse_stringlist() with SNMP ifdef to eliminate compiler warnings X-Git-Tag: SQUID_3_0_PRE1~3579 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f16a17e2965c428acdaa35ff4e416df82269ed06;p=thirdparty%2Fsquid.git protect parse_stringlist() with SNMP ifdef to eliminate compiler warnings and squid-bugs mails --- diff --git a/src/cache_cf.cc b/src/cache_cf.cc index c253a58cb9..410616f1a9 100644 --- a/src/cache_cf.cc +++ b/src/cache_cf.cc @@ -1,6 +1,6 @@ /* - * $Id: cache_cf.cc,v 1.270 1998/04/02 17:11:22 rousskov Exp $ + * $Id: cache_cf.cc,v 1.271 1998/04/08 05:44:11 wessels Exp $ * * DEBUG: section 3 Configuration File Parsing * AUTHOR: Harvest Derived @@ -62,7 +62,10 @@ static int parseTimeUnits(const char *unit); static void parseTimeLine(time_t * tptr, const char *units); static void parse_string(char **); static void parse_wordlist(wordlist **); +#if SQUID_SNMP +/* sigh, stringlist is only used for SNMP stuff now */ static void parse_stringlist(wordlist **); +#endif static void default_all(void); static void defaults_if_none(void); static int parse_line(char *); @@ -1268,6 +1271,7 @@ parse_wordlist(wordlist ** list) wordlistAdd(list, token); } +#if SQUID_SNMP static void parse_stringlist(wordlist ** list) { @@ -1277,6 +1281,7 @@ parse_stringlist(wordlist ** list) } #define free_stringlist free_wordlist #define dump_stringlist dump_wordlist +#endif /* SQUID_SNMP */ #define free_wordlist wordlistDestroy