SQUID_DEFINE_BOOL and broken ifdefs

From: Alex Rousskov <rousskov_at_measurement-factory.com>
Date: Tue, 06 Jul 2010 15:22:23 -0600

Hello,

    The kill-parent hack got magically enabled on its own in trunk. The
 problem is the "#ifdef KILL_PARENT_OPT" line in main.cc. Since
KILL_PARENT_OPT is set to "0" when the option is disabled, the quoted
preprocessor condition is always true.

A simple script found a couple of more potential bugs:

./src/main.cc:593:#ifdef KILL_PARENT_OPT
./include/cache_snmp.h:7:#ifdef SQUID_SNMP
./include/profiling.h:69:#undef USE_XPROF_STATS

HTH,

Alex.
Received on Tue Jul 06 2010 - 21:23:19 MDT

This archive was generated by hypermail 2.2.0 : Wed Jul 07 2010 - 12:00:39 MDT