Enable shadow warnings, fix one case.
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
CC ?= clang
|
CC ?= clang
|
||||||
CFLAGS ?= -Wall -Werror -O4 -g --std=gnu11 --pedantic-errors -fPIE -pie -fstack-protector-strong -pthread
|
CFLAGS ?= -Wall -Werror -Wshadow -O4 -g --std=gnu11 --pedantic-errors -fPIE -pie -fstack-protector-strong -pthread
|
||||||
LDFLAGS ?= $(CFLAGS) -Wl,-z,relro -Wl,-z,now
|
LDFLAGS ?= $(CFLAGS) -Wl,-z,relro -Wl,-z,now
|
||||||
LIBS ?= -ljansson -lprotobuf-c
|
LIBS ?= -ljansson -lprotobuf-c
|
||||||
|
|
||||||
|
|||||||
@@ -30,10 +30,10 @@ struct send {
|
|||||||
struct send *next;
|
struct send *next;
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef void (*serializer)(struct packet *, struct buf *);
|
typedef void (*serialize)(struct packet *, struct buf *);
|
||||||
struct serializer {
|
struct serializer {
|
||||||
char *name;
|
char *name;
|
||||||
serializer serialize;
|
serialize serialize;
|
||||||
struct send *send_head;
|
struct send *send_head;
|
||||||
} serializers[] = {
|
} serializers[] = {
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user