aboutsummaryrefslogtreecommitdiff
path: root/libctf/ctf-intl.h
diff options
context:
space:
mode:
authorNick Alcock <nick.alcock@oracle.com>2025-06-03 13:39:33 +0100
committerNick Alcock <nick.alcock@oracle.com>2025-06-26 15:49:11 +0100
commit56245d74e26f1ae6365f39ca0f4dce4f26c19607 (patch)
tree3746c2a81eb8f2de632d633382041a03da0c7650 /libctf/ctf-intl.h
parent043507b43be4171a5a911bb47559438b807ab7e5 (diff)
downloadbinutils-56245d74e26f1ae6365f39ca0f4dce4f26c19607.zip
binutils-56245d74e26f1ae6365f39ca0f4dce4f26c19607.tar.gz
binutils-56245d74e26f1ae6365f39ca0f4dce4f26c19607.tar.bz2
libctf: use __attribute__((__gnu_printf__)) where appropriate
We don't use any GNU-specific printf args, but this prevents warnings about %z, observed on MinGW even though every libc anyone is likely to use there supports %z perfectly well, and we're not stopping using it just because MinGW complains. Doing this means we stand more chance of seeing *actual* problems on such platforms without them being drowned in noise. We turn this off on clang, which doesn't support __gnu_printf__. Suggested by Eli Zaretskii. libctf/ PR libctf/31863 * ctf-impl.h (_libctf_printflike_): Use __gnu_printf__.
Diffstat (limited to 'libctf/ctf-intl.h')
0 files changed, 0 insertions, 0 deletions