Permalink
Browse files

milkymist: use -Wshadow

Only one minor conflict found.
  • Loading branch information...
1 parent f043b4c commit 14a31d48dbabcdf6c8ef4ce547634fbed1638f02 @wpwrak wpwrak committed with sbourdeauducq Dec 12, 2011
Showing with 1 addition and 2 deletions.
  1. +1 −1 software/include.mak
  2. +0 −1 software/libbase/vsnprintf.c
View
@@ -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)
@@ -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 *));

0 comments on commit 14a31d4

Please sign in to comment.