Fixed shadowed variable warnings

- Fixed shadowed variable warnings in lfs_dir_find.
- Fixed unused parameter warnings when LFS_NO_MALLOC is enabled.
- Added extra warning flags to CFLAGS.
- Updated tests so they don't shadow the "size" variable for -Wshadow
This commit is contained in:
Damien George
2018-06-08 11:24:27 +10:00
committed by Christopher Haster
parent 93a2e0bbe5
commit 51346b8bf4
5 changed files with 11 additions and 8 deletions

View File

@@ -22,7 +22,7 @@ ifdef WORD
override CFLAGS += -m$(WORD)
endif
override CFLAGS += -I.
override CFLAGS += -std=c99 -Wall -pedantic
override CFLAGS += -std=c99 -Wall -pedantic -Wshadow -Wunused-parameter
all: $(TARGET)