From: Jason Merrill Date: Mon, 10 Jul 2006 17:01:54 +0000 (-0400) Subject: * class.c (check_field_decls): Fix warning call. X-Git-Tag: releases/gcc-4.0.4~544 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3db4477491da6573a662131fa49d26b9323206a3;p=thirdparty%2Fgcc.git * class.c (check_field_decls): Fix warning call. From-SVN: r115308 --- 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;