This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[c++ patch]: fix testsuite warning


hi,
I've installed this to fix an erronous warning on LP64 machines.

Tested by Steve Ellcey sje@cup.hp.com on such hardware, thanks.

nathan
-- 
Dr Nathan Sidwell   ::   http://www.codesourcery.com   ::   CodeSourcery LLC
         'But that's a lie.' - 'Yes it is. What's your point?'
nathan@codesourcery.com : http://www.cs.bris.ac.uk/~nathan/ : nathan@acm.org
2002-08-27  Nathan Sidwell  <nathan@codesourcery.com>

	* g++.dg/other/offsetof1.C: Avoid cast warning.

Index: testsuite/g++.dg/other/offsetof1.C
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/g++.dg/other/offsetof1.C,v
retrieving revision 1.1
diff -c -3 -p -r1.1 offsetof1.C
*** testsuite/g++.dg/other/offsetof1.C	15 Aug 2002 10:34:05 -0000	1.1
--- testsuite/g++.dg/other/offsetof1.C	27 Aug 2002 20:52:50 -0000
*************** struct F
*** 11,14 ****
    char j;
  };
  
! static int ary[((unsigned) &((struct F *)0)->j)];
--- 11,14 ----
    char j;
  };
  
! static int ary[((__SIZE_TYPE__)&((struct F *)0)->j)];

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]