This is an automated email from the git hooks/post-receive script.

guillem pushed a commit to branch main
in repository dpkg.

View the commit online:
https://git.dpkg.org/cgit/dpkg/dpkg.git/commit/?id=ee2a693d995c2469330c2076d5bda8e9b510be6c

commit ee2a693d995c2469330c2076d5bda8e9b510be6c
Author: Guillem Jover <[email protected]>
AuthorDate: Thu Feb 23 22:24:15 2023 +0100

    libcompat: Declare veriables before definitions
    
    Make sure we declare these variables before defining them. In case
    of sys_siglist if the system does not have it we should provide a
    declaration in the header file.
    
    Warned-by: clang-16 -Wmissing-variable-declarations
---
 lib/compat/compat.h | 4 ++++
 lib/compat/empty.c  | 1 +
 2 files changed, 5 insertions(+)

diff --git a/lib/compat/compat.h b/lib/compat/compat.h
index 5bad7a3a2..17a03259c 100644
--- a/lib/compat/compat.h
+++ b/lib/compat/compat.h
@@ -147,6 +147,10 @@ extern "C" {
 #define unsetenv test_unsetenv
 #endif
 
+#if !HAVE_DECL_SYS_SIGLIST
+extern const char *const sys_siglist[];
+#endif
+
 #if TEST_LIBCOMPAT || !defined(HAVE_C99_SNPRINTF)
 int snprintf(char *str, size_t n, char const *fmt, ...)
        LIBCOMPAT_ATTR_PRINTF(3);
diff --git a/lib/compat/empty.c b/lib/compat/empty.c
index ec2e46e6e..544a48497 100644
--- a/lib/compat/empty.c
+++ b/lib/compat/empty.c
@@ -1,2 +1,3 @@
 /* Some implementations of ar cannot create an empty archive. */
+extern int libdpkg_empty_dummy_symbol;
 int libdpkg_empty_dummy_symbol;

-- 
Dpkg.Org's dpkg

Reply via email to