From fe2486c398c746084b6068f3901e74d5b11b4ccb Mon Sep 17 00:00:00 2001 From: Ian Gulliver Date: Thu, 25 Feb 2016 21:24:10 -0800 Subject: [PATCH] Enable shadow warnings, fix one case. --- adsbus/Makefile | 2 +- adsbus/send.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/adsbus/Makefile b/adsbus/Makefile index 3c1dba0..a5ab14c 100644 --- a/adsbus/Makefile +++ b/adsbus/Makefile @@ -1,5 +1,5 @@ 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 LIBS ?= -ljansson -lprotobuf-c diff --git a/adsbus/send.c b/adsbus/send.c index c14f232..999dc8c 100644 --- a/adsbus/send.c +++ b/adsbus/send.c @@ -30,10 +30,10 @@ struct send { struct send *next; }; -typedef void (*serializer)(struct packet *, struct buf *); +typedef void (*serialize)(struct packet *, struct buf *); struct serializer { char *name; - serializer serialize; + serialize serialize; struct send *send_head; } serializers[] = { {