]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
* g++.dg/other/offsetof1.C: Avoid cast warning.
authorNathan Sidwell <nathan@codesourcery.com>
Tue, 27 Aug 2002 20:55:17 +0000 (20:55 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Tue, 27 Aug 2002 20:55:17 +0000 (20:55 +0000)
From-SVN: r56614

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/other/offsetof1.C

index 496fc950a9dcbe24dea25383744d13be894e04ce..17cadbfb00946c9f1b4f3b764e64a7a54cba83c9 100644 (file)
@@ -1,3 +1,7 @@
+2002-08-27  Nathan Sidwell  <nathan@codesourcery.com>
+
+       * g++.dg/other/offsetof1.C: Avoid cast warning.
+
 2002-08-26  Ziemowit Laski  <zlaski@apple.com>
 
         * objc.dg/super-class-2.m: New test.
index 1051cd28cfeb8bc2701bb10661eb9143df5f9129..6d4ebf93c14ad74e0ff2e5949eecba4510c9ca92 100644 (file)
@@ -11,4 +11,4 @@ struct F
   char j;
 };
 
-static int ary[((unsigned) &((struct F *)0)->j)];
+static int ary[((__SIZE_TYPE__)&((struct F *)0)->j)];