aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-format.c
diff options
context:
space:
mode:
authorJason Thorpe <thorpej@wasabisystems.com>2002-05-23 18:32:12 +0000
committerJason Thorpe <thorpej@wasabisystems.com>2002-05-23 18:32:12 +0000
commit6358173cab9102bbbac81d1e4797a28502c3d24d (patch)
treea0f4ef4e49cca963a0f7c4212cd7cef8b803fee1 /gcc/c-format.c
parent811959a32d742c6d73e0eaafe4b0ec6d56ea6152 (diff)
* 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: https://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.c5
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)