]> Savannah Git Hosting - gnulib.git/commitdiff
lib-symbol-visibility: Make it work with -Wmissing-prototypes.
authorOzkan Sezer <sezeroz@gmail.com>
Thu, 11 Feb 2021 15:39:56 +0000 (18:39 +0300)
committerBruno Haible <bruno@clisp.org>
Sat, 13 Feb 2021 18:10:28 +0000 (19:10 +0100)
* m4/visibility.m4 (gl_VISIBILITY): Avoid error from simultaneous use of
-Wmissing-prototypes and -Werror.

ChangeLog
m4/visibility.m4

index e6d8469eebeb23ca4013c11895d2b69292c03437..d6d8e09225da089cc0098828db3e988ba5b72e54 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -4,6 +4,12 @@
        * lib/stddef.in.h (_GL_STDDEF_ALIGNAS, rpl_max_align_t, max_align_t):
        Don't ignore HAVE_MAX_ALIGN_T if the compiler is clang.
 
+2021-02-13  Ozkan Sezer  <sezeroz@gmail.com>
+
+       lib-symbol-visibility: Make it work with -Wmissing-prototypes.
+       * m4/visibility.m4 (gl_VISIBILITY): Avoid error from simultaneous use of
+       -Wmissing-prototypes and -Werror.
+
 2021-02-08  Bruno Haible  <bruno@clisp.org>
 
        Document non-standard prototypes on MidnightBSD.
index 6e4b461507b1fcc6c51907ed45d8278fa412efec..8f27a122df3f954a01ab6a477bd591e0c2de3185 100644 (file)
@@ -1,4 +1,4 @@
-# visibility.m4 serial 6
+# visibility.m4 serial 7
 dnl Copyright (C) 2005, 2008, 2010-2021 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -58,6 +58,7 @@ AC_DEFUN([gl_VISIBILITY],
               extern __attribute__((__visibility__("default"))) int exportedvar;
               extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
               extern __attribute__((__visibility__("default"))) int exportedfunc (void);
+              void dummyfunc (void);
               void dummyfunc (void) {}
             ]],
             [[]])],