From 3db4477491da6573a662131fa49d26b9323206a3 Mon Sep 17 00:00:00 2001 From: Jason Merrill Date: Mon, 10 Jul 2006 13:01:54 -0400 Subject: [PATCH] * class.c (check_field_decls): Fix warning call. From-SVN: r115308 --- gcc/cp/ChangeLog | 4 ++++ gcc/cp/class.c | 5 ++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 1984ee7b1429..7f2996a5a135 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,7 @@ +2006-07-10 Jason Merrill + + * class.c (check_field_decls): Fix warning call. + 2006-07-08 Lee Millward Andrew Pinski diff --git a/gcc/cp/class.c b/gcc/cp/class.c index 8066ec9f7fbd..83f47865fd4c 100644 --- a/gcc/cp/class.c +++ b/gcc/cp/class.c @@ -2949,9 +2949,8 @@ check_field_decls (tree t, tree *access_decls, if (TYPE_PACKED (t)) { if (!pod_type_p (type) && !TYPE_PACKED (type)) - warning - (0, - "ignoring packed attribute on unpacked non-POD field %q+#D", + cp_warning_at + ("ignoring packed attribute on unpacked non-POD field %q#D", x); else if (TYPE_ALIGN (TREE_TYPE (x)) > BITS_PER_UNIT) DECL_PACKED (x) = 1; -- 2.47.2