bug-gnulib@gnu.org mirror (unofficial)
 help / color / mirror / Atom feed
* [PATCH] make gl_VISIBILITY to work with -Wmissing-prototypes
@ 2021-02-11 15:40 Ozkan Sezer
  2021-02-13 18:11 ` Bruno Haible
  0 siblings, 1 reply; 2+ messages in thread
From: Ozkan Sezer @ 2021-02-11 15:40 UTC (permalink / raw)
  To: bug-gnulib

[-- Attachment #1: Type: text/plain, Size: 146 bytes --]

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

--
O.S.

[-- Attachment #2: 0001-visibility.m4-make-gl_VISIBILITY-to-work-with-Wmissi.patch --]
[-- Type: text/x-patch, Size: 870 bytes --]

From 0996facf5c4a5d61771024d0317f1b08a34df502 Mon Sep 17 00:00:00 2001
From: Ozkan Sezer <sezeroz@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


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] make gl_VISIBILITY to work with -Wmissing-prototypes
  2021-02-11 15:40 [PATCH] make gl_VISIBILITY to work with -Wmissing-prototypes Ozkan Sezer
@ 2021-02-13 18:11 ` Bruno Haible
  0 siblings, 0 replies; 2+ messages in thread
From: Bruno Haible @ 2021-02-13 18:11 UTC (permalink / raw)
  To: bug-gnulib; +Cc: Ozkan Sezer

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

Thanks. I applied this in your name, with a gnulib-style ChangeLog entry
and commit message.

Bruno



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-02-13 20:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-11 15:40 [PATCH] make gl_VISIBILITY to work with -Wmissing-prototypes Ozkan Sezer
2021-02-13 18:11 ` Bruno Haible

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).