[Swan-dev] #error as a macro body

Paul Wouters paul at nohats.ca
Tue Dec 9 19:14:59 EET 2014


On Sun, 7 Dec 2014, D. Hugh Redelmeier wrote:

> I don't think that's legal C.
>
> It appears in
>
> packaging/fedora/config-all.h:73:#define CONFIG_KLIPS_ALG_CRYPTOAPI #error
> packaging/fedora/config-all.h:74:#define CONFIG_KLIPS_ALG_AES #error
>
> packaging/openwrt/config-all.h:45:#define CONFIG_KLIPS_ALG_CRYPTOAPI #error
> packaging/openwrt/config-all.h:46:#define CONFIG_KLIPS_ALG_AES #error
>
> packaging/linus/config-all.h:73:#define CONFIG_KLIPS_ALG_CRYPTOAPI #error
> packaging/linus/config-all.h:74:#define CONFIG_KLIPS_ALG_AES #error
>
> packaging/ocf/config-all.h:79:#define CONFIG_KLIPS_ALG_CRYPTOAPI #error
> packaging/ocf/config-all.h:80:#define CONFIG_KLIPS_ALG_AES #error

Looks like cruft. Those macros are never used anywhere in KLIPS.

I've removed a bunch of files that were unused and removed these macros
from files that might still see some use.

Thanks,

Paul


More information about the Swan-dev mailing list