On Mon, 2009-08-24 at 14:58 -0400, Bill Auerbach wrote: > >From: [email protected] > >[mailto:[email protected]] On > >Behalf Of Chris Strahm > >Sent: Monday, August 24, 2009 5:33 AM > >To: Mailing list for lwIP users > >Subject: [lwip-users] IP Address Display Functions > > > >However the "netadr.ip" value here contains a "struct ip_addr". > >Since they are not the same, all the above type casting is done > >to force it to work. This causes a warning everywhere from GCC > >about alignment etc. > > I'd like to add that the packing around struct ip_addr is also unnecessary. > Although it seems benign, it's not. My version of GCC (NIOS) treats this > packed struct as char array and does 4 byte loads, ANDs, shifts, and ORs > everywhere this stuct was used. I simply use: > > struct ip_addr { > u32_t addr; > };
Please file a bug. Kieran _______________________________________________ lwip-users mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/lwip-users
