Re: [PATCH] panic: suppress gnu_printf warning

2024-01-09 Thread Manuel López-Ibáñez via Gcc
On 07/01/2024 19:21, Andrew Morton wrote: On Sun, 7 Jan 2024 17:16:41 +0800 Baoquan He wrote: with GCC 13.2.1 and W=1, there's compiling warning like this: kernel/panic.c: In function ?__warn?: kernel/panic.c:676:17: warning: function ?__warn? might be a candidate for ?gnu_printf? format at

Re: [PATCH] panic: suppress gnu_printf warning

2024-01-07 Thread Baoquan He via Gcc
On 01/07/24 at 10:21am, Andrew Morton wrote: > On Sun, 7 Jan 2024 17:16:41 +0800 Baoquan He wrote: > > > with GCC 13.2.1 and W=1, there's compiling warning like this: > > > > kernel/panic.c: In function ‘__warn’: > > kernel/panic.c:676:17: warning: function ‘__warn’ might be a candidate for >

Re: [PATCH] panic: suppress gnu_printf warning

2024-01-07 Thread Andrew Morton
On Sun, 7 Jan 2024 17:16:41 +0800 Baoquan He wrote: > with GCC 13.2.1 and W=1, there's compiling warning like this: > > kernel/panic.c: In function ‘__warn’: > kernel/panic.c:676:17: warning: function ‘__warn’ might be a candidate for > ‘gnu_printf’ format attribute [-Wsuggest-attribute=format