]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
* class.c (check_field_decls): Fix warning call.
authorJason Merrill <jason@redhat.com>
Mon, 10 Jul 2006 17:01:54 +0000 (13:01 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Mon, 10 Jul 2006 17:01:54 +0000 (13:01 -0400)
From-SVN: r115308

gcc/cp/ChangeLog
gcc/cp/class.c

index 1984ee7b1429c4c6d0672b05697411d76205a4d3..7f2996a5a1350e4a9687b8f50ea9d86374518464 100644 (file)
@@ -1,3 +1,7 @@
+2006-07-10  Jason Merrill  <jason@redhat.com>
+
+       * class.c (check_field_decls): Fix warning call.
+
 2006-07-08  Lee Millward  <lee.millward@gmail.com>
            Andrew Pinski  <pinskia@gmail.com>
        
index 8066ec9f7fbdb165095a34e7d58f660c320e8d8f..83f47865fd4c4a616d3fc3f6c207d4e2df85273f 100644 (file)
@@ -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;