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,11 +50,16 @@
|
|||||||
|
|
||||||
struct mem {
|
struct mem {
|
||||||
mem_size_t next, prev;
|
mem_size_t next, prev;
|
||||||
|
#if MEM_ALIGNMENT == 1
|
||||||
u8_t used;
|
u8_t used;
|
||||||
#if MEM_ALIGNMENT == 2
|
#elif MEM_ALIGNMENT == 2
|
||||||
u8_t dummy;
|
u16_t used;
|
||||||
#endif /* MEM_ALIGNEMNT == 2 */
|
#elif MEM_ALIGNMENT == 4
|
||||||
};
|
u32_t used;
|
||||||
|
#else
|
||||||
|
#error "unhandled MEM_ALIGNMENT size"
|
||||||
|
#endif /* MEM_ALIGNMENT */
|
||||||
|
};
|
||||||
|
|
||||||
static struct mem *ram_end;
|
static struct mem *ram_end;
|
||||||
static u8_t ram[MEM_SIZE + sizeof(struct mem) + MEM_ALIGNMENT];
|
static u8_t ram[MEM_SIZE + sizeof(struct mem) + MEM_ALIGNMENT];
|
||||||
|
Loading…
Reference in New Issue
Block a user