From: Ozkan Sezer <sezeroz@gmail.com>
To: bug-gnulib@gnu.org
Subject: [PATCH] make gl_VISIBILITY to work with -Wmissing-prototypes
Date: Thu, 11 Feb 2021 18:40:52 +0300 [thread overview]
Message-ID: <CAA2C=vAzq1BgqHTTOENFmj3E4Q9PaxJjgedwayM1xyej=jxycQ@mail.gmail.com> (raw)
[-- 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
next reply other threads:[~2021-02-11 15:41 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-02-11 15:40 Ozkan Sezer [this message]
2021-02-13 18:11 ` [PATCH] make gl_VISIBILITY to work with -Wmissing-prototypes Bruno Haible
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://lists.gnu.org/mailman/listinfo/bug-gnulib
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAA2C=vAzq1BgqHTTOENFmj3E4Q9PaxJjgedwayM1xyej=jxycQ@mail.gmail.com' \
--to=sezeroz@gmail.com \
--cc=bug-gnulib@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).