Backport gettext fixes to get rid of warnings on macOS
authorSimon Marchi <simon.marchi@ericsson.com>
Thu, 2 Aug 2018 18:53:34 +0000 (14:53 -0400)
committerSimon Marchi <simon.marchi@ericsson.com>
Thu, 2 Aug 2018 18:56:02 +0000 (14:56 -0400)
commit8094f49a4dd9679c294e6254e928ea75c229aa95
treed5d4f769ae9257ccfcbe4e6c7b4ff5c7b7536390
parent8a28fa1b4beb3b4c77c9b3963f1e32235591470d
Backport gettext fixes to get rid of warnings on macOS

Two fixes were committed recently to the gettext repo in order to make
gdb build warning-free on macOS.  This patch backports them both:

  - Make the format_arg attribute effective also in the case _INTL_REDIRECT_INLINE.
    113893dce80358a4ae0d9463ce73c5670c81cf0c
    http://git.savannah.gnu.org/cgit/gettext.git/commit/?id=113893dce80358a4ae0d9463ce73c5670c81cf0c

  - Enable the format_arg attribute also on clang on Mac OS X.
    bd6a52241c7c83c90e043ace2082a2508d273f55
    http://git.savannah.gnu.org/cgit/gettext.git/commit/?id=bd6a52241c7c83c90e043ace2082a2508d273f55

intl/ChangeLog:

* libgnuintl.h (_INTL_MAY_RETURN_STRING_ARG, gettext, dgettext,
dcgettext, ngettext, dngettext, dcngettext): Backport changes
from upstream gettext.
intl/ChangeLog
intl/libgnuintl.h