From f7ec4b4a84aaf3e60b099e267dbfdabbfb1878c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20G=C3=B6ttsche?= Date: Fri, 12 Nov 2021 16:42:01 +0100 Subject: [PATCH] libsemanage: add extern prototype for legacy function MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit modules.c:171:13: warning: no previous prototype for ‘semanage_module_get_version’ [-Wmissing-prototypes] 171 | const char *semanage_module_get_version(semanage_module_info_t * modinfo | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ Signed-off-by: Christian Göttsche --- libsemanage/src/modules.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libsemanage/src/modules.c b/libsemanage/src/modules.c index b6dd456c..c98df4dd 100644 --- a/libsemanage/src/modules.c +++ b/libsemanage/src/modules.c @@ -168,6 +168,7 @@ const char *semanage_module_get_name(semanage_module_info_t * modinfo) /* Legacy function that remains to preserve ABI * compatibility. */ +extern const char *semanage_module_get_version(semanage_module_info_t *); const char *semanage_module_get_version(semanage_module_info_t * modinfo __attribute__ ((unused))) {