Skip to content

Commit

Permalink
milkymist: use -Wshadow
Browse files Browse the repository at this point in the history
Only one minor conflict found.
  • Loading branch information
wpwrak authored and Sebastien Bourdeauducq committed Dec 14, 2011
1 parent f043b4c commit 14a31d4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion software/include.mak
Expand Up @@ -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)
Expand Down
1 change: 0 additions & 1 deletion software/libbase/vsnprintf.c
Expand Up @@ -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 *));
Expand Down

0 comments on commit 14a31d4

Please sign in to comment.