From 802931d3728acb52763c13e2644c06ad2ce0cc3f Mon Sep 17 00:00:00 2001 From: Ozkan Sezer Date: Thu, 11 Feb 2021 18:39:56 +0300 Subject: [PATCH] lib-symbol-visibility: Make it work with -Wmissing-prototypes. * m4/visibility.m4 (gl_VISIBILITY): Avoid error from simultaneous use of -Wmissing-prototypes and -Werror. --- ChangeLog | 6 ++++++ m4/visibility.m4 | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) 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 + + 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 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) {} ]], [[]])], -- 2.39.5