]> git.ipfire.org Git - thirdparty/gnulib.git/commitdiff
gettext-h: Tweak comments.
authorBruno Haible <bruno@clisp.org>
Tue, 12 May 2026 00:36:08 +0000 (02:36 +0200)
committerBruno Haible <bruno@clisp.org>
Tue, 12 May 2026 00:36:08 +0000 (02:36 +0200)
* lib/gettext.h: Small comment improvements.

lib/gettext.h

index c033651b03d633134a9b74a91e2f7f5a3e15e853..02b8b7b8de4ae407c745f0b8d6e39d44a5f86059 100644 (file)
 /* Disabled NLS.  */
 /* When gcc is used with option -Wformat=2, we need to silence
    "warning: format not a string literal, argument types not checked [-Wformat-nonliteral]"
-   warnings that would occur at every invocation of a *ngettext function
+   warnings that would occur at every invocation of a *gettext function
    in a *printf format string position.
-   Do this with inline functions when possible.
+   Do this with inline functions when possible, namely for gettext, dgettext,
+   dcgettext, which are known to gcc as "external built-ins".
    It is not ideal to ignore the possible side effects done in the
    Domainname and Category arguments, but it's better than to have a
    warning at every invocation in a format string position.  */