The attached patch makes gl_VISIBILITY to work correctly
when -Wmissing-prototypes is in effect: dummyfunc() used to
have no prototypes.

--
O.S.
From 0996facf5c4a5d61771024d0317f1b08a34df502 Mon Sep 17 00:00:00 2001
From: Ozkan Sezer <seze...@gmail.com>
Date: Thu, 11 Feb 2021 18:39:56 +0300
Subject: [PATCH] visibility.m4: make gl_VISIBILITY to work with -Wmissing-prototypes

---
 m4/visibility.m4 |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/m4/visibility.m4 b/m4/visibility.m4
index 6e4b461..016b08c 100644
--- a/m4/visibility.m4
+++ b/m4/visibility.m4
@@ -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) {}
             ]],
             [[]])],
-- 
1.7.1

Reply via email to