From: Tobias Brunner Date: Fri, 6 Sep 2024 08:16:10 +0000 (+0200) Subject: checksum: Avoid compiler warning/error when building monolithic X-Git-Tag: 6.0.0rc1~48 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9d4c7bebfc373fc9b86ca9b773996330afb2bb91;p=thirdparty%2Fstrongswan.git checksum: Avoid compiler warning/error when building monolithic References strongswan/strongswan#2446 --- diff --git a/src/checksum/checksum_builder.c b/src/checksum/checksum_builder.c index 2c3451dfc4..e5d47f04b8 100644 --- a/src/checksum/checksum_builder.c +++ b/src/checksum/checksum_builder.c @@ -67,6 +67,8 @@ static void build_checksum(char *path, char *name, char *sname) name, fsize, fsum, ssize, ssum); } +#if defined(S_PLUGINS) || defined(P_PLUGINS) || \ + defined(T_PLUGINS) || defined(C_PLUGINS) /** * Build checksums for a set of plugins */ @@ -88,6 +90,7 @@ static void build_plugin_checksums(char *plugins) } enumerator->destroy(enumerator); } +#endif /** * Build checksums for a binary/library found at path