Re: [PATCH] c-family: Fix up a -Wformat regression [PR104148]

2022-01-21 Thread Joseph Myers
On Fri, 21 Jan 2022, Jakub Jelinek via Gcc-patches wrote: > 2022-01-21 Jakub Jelinek > > PR c++/104148 > * c-common.h (check_function_arguments_recurse): Add for_format > arg. > * c-common.cc (check_function_nonnull): Pass false to > check_function_arguments_recur

[PATCH] c-family: Fix up a -Wformat regression [PR104148]

2022-01-20 Thread Jakub Jelinek via Gcc-patches
Hi! As can be seen on the testcase, GCC 11 no longer warns if the format string is wrapped inside of ()s. This regressed with r11-2457-gdf5cf47a978, which added if (TREE_NO_WARNING (param)) return; to check_function_arguments_recurse. That function is used with a callback for two cases, for -Wfor