mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2025-01-01 12:00:53 +00:00
fixed gcc compiler error in do_memp_free_pool(): obviously, SYS_ARCH_DECL_PROTECT() must be the last declaration...
This commit is contained in:
parent
6618189342
commit
af97f9b239
@ -423,8 +423,8 @@ memp_malloc_fn(memp_t type, const char* file, const int line)
|
|||||||
static void
|
static void
|
||||||
do_memp_free_pool(const struct memp_desc* desc, void *mem)
|
do_memp_free_pool(const struct memp_desc* desc, void *mem)
|
||||||
{
|
{
|
||||||
SYS_ARCH_DECL_PROTECT(old_level);
|
|
||||||
struct memp *memp;
|
struct memp *memp;
|
||||||
|
SYS_ARCH_DECL_PROTECT(old_level);
|
||||||
|
|
||||||
LWIP_ASSERT("memp_free: mem properly aligned",
|
LWIP_ASSERT("memp_free: mem properly aligned",
|
||||||
((mem_ptr_t)mem % MEM_ALIGNMENT) == 0);
|
((mem_ptr_t)mem % MEM_ALIGNMENT) == 0);
|
||||||
|
Loading…
Reference in New Issue
Block a user