summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAriadne Conill <ariadne@dereferenced.org>2021-12-14 12:43:31 -0600
committerTimo Teräs <timo.teras@iki.fi>2021-12-14 21:13:47 +0200
commit9c888aa7b9ec733d77a2214e122df9112c7e55ba (patch)
tree6dc929f35fa787a7003755f56939b55a8580d22c
parent0fd415faf57bdf6e3e459b8315c3d9c8d69b0136 (diff)
downloadapk-tools-9c888aa7b9ec733d77a2214e122df9112c7e55ba.tar.gz
apk-tools-9c888aa7b9ec733d77a2214e122df9112c7e55ba.tar.bz2
apk-tools-9c888aa7b9ec733d77a2214e122df9112c7e55ba.tar.xz
apk-tools-9c888aa7b9ec733d77a2214e122df9112c7e55ba.zip
applet: suppress is_error warning on clang
clang does not ignore inline functions when checking for unused functions ref #10794
-rw-r--r--src/help.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/help.c b/src/help.c
index c8bba70..cfdb69a 100644
--- a/src/help.c
+++ b/src/help.c
@@ -9,6 +9,7 @@
#include <zlib.h>
#include "apk_applet.h"
#include "apk_print.h"
+#include "help.h"
static LIST_HEAD(apk_applet_list);
@@ -31,6 +32,7 @@ struct apk_applet *apk_applet_find(const char *name)
return NULL;
}
+#ifndef NO_HELP
static inline int is_group(struct apk_applet *applet, const char *topic)
{
if (!applet) return strcasecmp(topic, "apk") == 0;
@@ -39,11 +41,10 @@ static inline int is_group(struct apk_applet *applet, const char *topic)
if (strcasecmp(applet->optgroups[i]->desc, topic) == 0) return 1;
return 0;
}
+#endif
void apk_applet_help(struct apk_applet *applet)
{
-#include "help.h"
-
#ifndef NO_HELP
char buf[uncompressed_help_size], *ptr, *msg;
unsigned long len = sizeof buf;