Fix intl/libgnuintl.h
Masaki Muranaka
monaka@monami-software.com
Tue Jun 20 01:24:00 GMT 2006
Hello,
An attached patch is for intl/libgnuintl.h based on
the discussion at gdb-patches ML.
_() macro is extracted to intl_gettext() on some
hosts which use libgnuintl.h.
GCC regards some types of gettext call as constant,
but intl_gettext() isn't regarded.
So, the build was failed by error in case compiling
the code that has _() macro with
-Wformat -Wformat-nonliteral -Werror .
The patch is just for avoiding build failure on
GDB / mips64-elf cross target / MacOSX host.
I guess the similar patch should be applied on
other extern prototypes in libgnuintl.h.
(But I didn't. I don't have enough hosts to test.)
- - - - -
intl/
2006-06-15 Masaki Muranaka <monaka@monami-software.com>
* libgnuintl.h (libintl_gettext):
Add format_arg attribute.
- - - - -
--
Masaki Muranaka
Monami software
-------------- next part --------------
A non-text attachment was scrubbed...
Name: libgnuintl.h.diff
Type: application/octet-stream
Size: 1003 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20060620/1f299cd5/attachment.obj>
-------------- next part --------------
More information about the Gdb-patches
mailing list