From: Ozkan Sezer <sezeroz@gmail.com> Date: Thu, 11 Feb 2021 15:39:56 +0000 (+0300) Subject: lib-symbol-visibility: Make it work with -Wmissing-prototypes. X-Git-Tag: v1.0~3075 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=802931d3728acb52763c13e2644c06ad2ce0cc3f;p=gnulib.git lib-symbol-visibility: Make it work with -Wmissing-prototypes. * m4/visibility.m4 (gl_VISIBILITY): Avoid error from simultaneous use of -Wmissing-prototypes and -Werror. --- diff --git a/ChangeLog b/ChangeLog index e6d8469eeb..d6d8e09225 100644 --- 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. diff --git a/m4/visibility.m4 b/m4/visibility.m4 index 6e4b461507..8f27a122df 100644 --- a/m4/visibility.m4 +++ b/m4/visibility.m4 @@ -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) {} ]], [[]])],