Re: Fwd: [PATCH] fix format security
Paul Eggert <[email protected]>
| Newsgroups | gmane.comp.lib.gnulib.bugs,gmane.editors.poke.devel |
|---|---|
| Organization | UCLA Computer Science Department |
| Message-ID | <[email protected]> |
On 2026-08-24 08:08, Collin Funk wrote:
> It is a bit unfortunate that this warning comes up almost monthly
Perhaps we should add something like the following to gnulib/lib/gettext.h, once we have a Clang bug report number? Although drastic, this would save us time and we'd still get static checking when compiling with GCC, except for printf calls in clang-only code (which should be rare).
/* Pacify clang false alarm
<https://github.com/llvm/llvm-project/issues/987654321>. */
#ifdef __clang__
# pragma clang diagnostic ignored "-Wformat-security"
#endif