bug-gnulib@gnu.org mirror (unofficial)
 help / color / mirror / Atom feed
* [PATCH] lib/gettext.h: fix warning if gettext is already present
@ 2020-01-26 18:19 Giulio Benetti
  2020-01-26 22:12 ` Bruno Haible
  0 siblings, 1 reply; 11+ messages in thread
From: Giulio Benetti @ 2020-01-26 18:19 UTC (permalink / raw)
  To: bug-gnulib; +Cc: Giulio Benetti

Building on an environment where gettext is already present leads to
emitting a warning about gettext_noop() alread defined. And if -Werror
is passed this warning will be treated like an error, so let's #undef
gettext_noop() before #define it.

Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com>
---
 lib/gettext.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/gettext.h b/lib/gettext.h
index 249668af6..641113e43 100644
--- a/lib/gettext.h
+++ b/lib/gettext.h
@@ -106,6 +106,7 @@
    and other string expressions won't work.
    The macro's expansion is not parenthesized, so that it is suitable as
    initializer for static 'char[]' or 'const char[]' variables.  */
+#undef gettext_noop
 #define gettext_noop(String) String
 
 /* The separator between msgctxt and msgid in a .mo file.  */
-- 
2.20.1



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

end of thread, other threads:[~2020-02-03  1:07 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-26 18:19 [PATCH] lib/gettext.h: fix warning if gettext is already present Giulio Benetti
2020-01-26 22:12 ` Bruno Haible
2020-01-26 22:47   ` Giulio Benetti
2020-01-26 22:50     ` Giulio Benetti
2020-01-27  1:41     ` Bruno Haible
2020-01-27 16:00       ` Giulio Benetti
2020-01-27 17:38         ` Bruno Haible
2020-01-27 18:02           ` Giulio Benetti
2020-01-27 19:29             ` Bruno Haible
2020-02-02 23:15               ` Giulio Benetti
2020-02-03  1:07                 ` 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).