lwip-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lwip-devel] error introduced by commit acb4b60517572094bcd633c7df6f


From: Stian Skjelstad
Subject: Re: [lwip-devel] error introduced by commit acb4b60517572094bcd633c7df6fbd90836c4e2d icmp6_param_problem
Date: Thu, 12 Oct 2017 20:44:24 +0200

On Thu, Oct 12, 2017 at 7:46 PM, Dirk Ziegelmeier <address@hidden> wrote:
A "void" pointer is a pointer where you don't want to tell anything about the type, it could be char* or uint32_t* or whatever - so complaining about alignment or packing requirements is IMHO a compiler bug.

Unfortunately, a struct with packed members is non-standard, so we are in the compiler-specific world.

http://www.keil.com/support/man/docs/armcc/armcc_chr1359124980173.htm  Errors section
http://www.keil.com/support/man/docs/armcc/armcc_chr1359124968737.htm  Error section


ARM/Keil defines that pointers that are not naturally word aligned should be tagged with __packed


If using  #pragma pack  this error-checking is not performed, but you can not define a macro to performs #pragma


 I can give them a buzz and ask for a comment

--
Stian Skjelstad

reply via email to

[Prev in Thread] Current Thread [Next in Thread]