Martin Michlmayr <[EMAIL PROTECTED]> writes: > * Matthijs Mohlmann <[EMAIL PROTECTED]> [2006-03-11 16:06]: >> > There are mor errors when compiling with 4.1, e.g: >> > defrag.c: In function 'walk_zone_ind': >> > defrag.c:297: warning: cast increases required alignment of target type > ... >> When I build defrag, (with gcc 4.1) then I see these errors: > > The above is from mips. Do you think you can work out from the code > and the warnings what's wrong? I can test a patch.
The defrag code is filled with alignment changes warnings. The usual cause is that a "char *buf" is used to read a "struct something" or similar that result in different alignment rules to apply on !i386. But I wouldn't have thought gcc-4.1 would add more on top of what gcc-4.0 reports. >> cc1: warnings being treated as errors >> e2dump.c: In function ?dump_super?: >> e2dump.c:474: warning: dereferencing type-punned pointer will break > > I get that on i386 and can confirm that your patch works, thanks. > -- > Martin Michlmayr > http://www.cyrius.com/ MfG Goswin -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]