mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-12-26 03:16:18 +00:00
Removed dummy variable from "struct mem" and handled all MEM_ALIGNMENT cases
Fixes bug #1912
This commit is contained in:
parent
af0d6bc881
commit
9eebc135ce
@ -50,10 +50,15 @@
|
||||
|
||||
struct mem {
|
||||
mem_size_t next, prev;
|
||||
#if MEM_ALIGNMENT == 1
|
||||
u8_t used;
|
||||
#if MEM_ALIGNMENT == 2
|
||||
u8_t dummy;
|
||||
#endif /* MEM_ALIGNEMNT == 2 */
|
||||
#elif MEM_ALIGNMENT == 2
|
||||
u16_t used;
|
||||
#elif MEM_ALIGNMENT == 4
|
||||
u32_t used;
|
||||
#else
|
||||
#error "unhandled MEM_ALIGNMENT size"
|
||||
#endif /* MEM_ALIGNMENT */
|
||||
};
|
||||
|
||||
static struct mem *ram_end;
|
||||
|
Loading…
Reference in New Issue
Block a user