[Swan] undefined macros in #if expressions
D. Hugh Redelmeier
hugh at mimosa.com
Sun Nov 3 07:51:14 EET 2013
The C standard says that, within a #if expression, names that have no
(macro) definition are treated as 0.
GCC with a suitable flag (-Wundef) will warn when this happens -- it
is error prone.
In libreswan, it happens two places when I did a make programs:
lib/libipsecconf/confread.c:
#if STARTER_POLICY_DEBUG
programs/spi/spi.c:
#if PFKEY_PROXY
Should these be #ifdefs?
It seems likely
More information about the Swan
mailing list