diff options
author | thorpej <thorpej@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-05-23 18:32:12 +0000 |
---|---|---|
committer | thorpej <thorpej@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-05-23 18:32:12 +0000 |
commit | 314bd4cf6a6176d326128efbe4b829073305b81e (patch) | |
tree | a0f4ef4e49cca963a0f7c4212cd7cef8b803fee1 /gcc/c-format.c | |
parent | 0ba0ef708bc3205de3e1b15d6561694b3d23f4cf (diff) | |
download | gcc-314bd4cf6a6176d326128efbe4b829073305b81e.tar.gz |
* 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
Diffstat (limited to 'gcc/c-format.c')
-rw-r--r-- | gcc/c-format.c | 5 |
1 files changed, 0 insertions, 5 deletions
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) |