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

2
lfs.c
View File

@@ -836,7 +836,7 @@ nextname:
// find entry matching name
while (true) {
int err = lfs_dir_next(lfs, dir, entry);
err = lfs_dir_next(lfs, dir, entry);
if (err) {
return err;
}