]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
checksum: Avoid compiler warning/error when building monolithic
authorTobias Brunner <tobias@strongswan.org>
Fri, 6 Sep 2024 08:16:10 +0000 (10:16 +0200)
committerTobias Brunner <tobias@strongswan.org>
Wed, 18 Sep 2024 09:49:35 +0000 (11:49 +0200)
References strongswan/strongswan#2446

src/checksum/checksum_builder.c

index 2c3451dfc4984c07d2b1bbf1631e85c75d98dd92..e5d47f04b8b3be639497015b4c61ffd801f1ace2 100644 (file)
@@ -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