mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-12-25 18:14:53 +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,11 +50,16 @@
|
||||
|
||||
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;
|
||||
static u8_t ram[MEM_SIZE + sizeof(struct mem) + MEM_ALIGNMENT];
|
||||
|
Loading…
Reference in New Issue
Block a user