From 14a31d48dbabcdf6c8ef4ce547634fbed1638f02 Mon Sep 17 00:00:00 2001 From: Werner Almesberger Date: Mon, 12 Dec 2011 17:28:29 -0300 Subject: [PATCH] milkymist: use -Wshadow Only one minor conflict found. --- software/include.mak | 2 +- software/libbase/vsnprintf.c | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/software/include.mak b/software/include.mak index 04608c54..b0a774a1 100644 --- a/software/include.mak +++ b/software/include.mak @@ -38,7 +38,7 @@ INCLUDES_NOLIBC ?= -nostdinc -I$(MMDIR)/software/include/base INCLUDES = $(INCLUDES_NOLIBC) -I$(MMDIR)/software/include -I$(MMDIR)/tools ASFLAGS = $(INCLUDES) -nostdinc # later: -Wmissing-prototypes -CFLAGS = -O9 -Wall -Wstrict-prototypes -Wold-style-definition \ +CFLAGS = -O9 -Wall -Wstrict-prototypes -Wold-style-definition -Wshadow \ -mbarrel-shift-enabled -mmultiply-enabled -mdivide-enabled \ -msign-extend-enabled -fno-builtin -fsigned-char \ -fsingle-precision-constant $(INCLUDES) diff --git a/software/libbase/vsnprintf.c b/software/libbase/vsnprintf.c index d659f211..102ee8cb 100644 --- a/software/libbase/vsnprintf.c +++ b/software/libbase/vsnprintf.c @@ -198,7 +198,6 @@ int vsnprintf(char *buf, size_t size, const char *fmt, va_list args) int m; float f; int integer; - int i; /* until I sort out how to disable this stupid promotion to double ... */ f = *(va_arg(args, float *));