From 314bd4cf6a6176d326128efbe4b829073305b81e Mon Sep 17 00:00:00 2001 From: thorpej Date: Thu, 23 May 2002 18:32:12 +0000 Subject: * builtin-attrs.def: Update copyright years. (ATTR_NONNULL): New attribute identifier. (ATTR_NONNULL_1, ATTR_NONNULL_2, ATTR_NONNULL_3): New attribute tree lists. (DEF_FORMAT_ATTRIBUTE): Chain a nonnull attribute for the format operand. (ATTR_FORMAT_ARG_1, ATTR_FORMAT_ARG_2): Use... (DEF_FORMAT_ARG_ATTRIBUTE): ...this to generate format_arg attribute lists. Chain the appropriate nonnull attribute. * c-format.c (check_format_arg): Remove null format string warning. * testsuite/gcc.dg/format/null-1.c: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@53801 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/c-format.c | 5 ----- 1 file changed, 5 deletions(-) (limited to 'gcc/c-format.c') diff --git a/gcc/c-format.c b/gcc/c-format.c index b3640c50190..7e8b1374de4 100644 --- a/gcc/c-format.c +++ b/gcc/c-format.c @@ -1418,11 +1418,6 @@ check_format_arg (ctx, format_tree, arg_num) if (integer_zerop (format_tree)) { - /* FIXME: instead of warning about a null format string here, - functions for which we want to perform this check should be - marked with the "nonnull" attribute on the appropriate arguments. */ - status_warning (status, "null format string"); - /* Skip to first argument to check, so we can see if this format has any arguments (it shouldn't). */ while (arg_num + 1 < info->first_arg_num) -- cgit v1.2.1