https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104148
--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> --- check_function_arguments_recurse does multiple things, but I think -Wformat when discovering the string literals shouldn't really care whether TREE_NO_WARNING is set or not, the warning should be driven by TREE_NO_WARNING on the CALL_EXPR to the function with format attribute.