From: Nathan Sidwell Date: Tue, 27 Aug 2002 20:55:17 +0000 (+0000) Subject: * g++.dg/other/offsetof1.C: Avoid cast warning. X-Git-Tag: releases/gcc-3.3.0~3140 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ac2a2d6f2f7017e24ed27845af4d48bfc3ba1e4f;p=thirdparty%2Fgcc.git * g++.dg/other/offsetof1.C: Avoid cast warning. From-SVN: r56614 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 496fc950a9dc..17cadbfb0094 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2002-08-27 Nathan Sidwell + + * g++.dg/other/offsetof1.C: Avoid cast warning. + 2002-08-26 Ziemowit Laski * objc.dg/super-class-2.m: New test. diff --git a/gcc/testsuite/g++.dg/other/offsetof1.C b/gcc/testsuite/g++.dg/other/offsetof1.C index 1051cd28cfeb..6d4ebf93c14a 100644 --- a/gcc/testsuite/g++.dg/other/offsetof1.C +++ b/gcc/testsuite/g++.dg/other/offsetof1.C @@ -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)];