[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250405101126.7a2627a6@pumpkin>
Date: Sat, 5 Apr 2025 10:11:26 +0100
From: David Laight <david.laight.linux@...il.com>
To: Nathan Chancellor <nathan@...nel.org>
Cc: Linus Torvalds <torvalds@...ux-foundation.org>, Petr Mladek
<pmladek@...e.com>, Steven Rostedt <rostedt@...dmis.org>, Andy Shevchenko
<andriy.shevchenko@...ux.intel.com>, Rasmus Villemoes
<linux@...musvillemoes.dk>, Sergey Senozhatsky <senozhatsky@...omium.org>,
linux-kernel@...r.kernel.org, llvm@...ts.linux.dev
Subject: Re: [PATCH 0/2] vsprintf: Use __diag macros to disable
'-Wsuggest-attribute=format'
On Fri, 04 Apr 2025 15:10:01 -0700
Nathan Chancellor <nathan@...nel.org> wrote:
> Hi all,
>
> This is a follow up to the complaint that Linus made at [1] about how
> the #pragma and #ifdef to disable -Wsuggest-attribute=format is
> currently ugly. Convert the #pragma and #ifdef to the existing __diag()
> infrastructure in the kernel to hide some of the ugliness.
It's still horribly ugly.
Perhaps the compilers ought to support __attribute__((format(none)))
to disable the warning.
And then disable it for older compilers.
David
Powered by blists - more mailing lists