fixed gcc compiler error in do_memp_free_pool(): obviously, SYS_ARCH_DECL_PROTECT() must be the last declaration...

This commit is contained in:
goldsimon 2016-07-27 08:26:42 +02:00
parent 6618189342
commit af97f9b239

View File

@ -423,8 +423,8 @@ memp_malloc_fn(memp_t type, const char* file, const int line)
static void
do_memp_free_pool(const struct memp_desc* desc, void *mem)
{
SYS_ARCH_DECL_PROTECT(old_level);
struct memp *memp;
SYS_ARCH_DECL_PROTECT(old_level);
LWIP_ASSERT("memp_free: mem properly aligned",
((mem_ptr_t)mem % MEM_ALIGNMENT) == 0);