fs_getdents returns uninitialized variable in some cases causing false positive errors
The return value of the function fs_getdents will be returned to the caller uninitialized
if *nbyte is not equal to 0 or lstat64 fails.
This causes that the caller fails with an error.
In my case
Updated by Yuri Pankov about 4 years ago
Indeed. And that really asks for fixing warnings reported by gcc instead of silencing them:
cc1: warnings being treated as errors tlm/tlm_traverse.c: In function 'fs_getdents': tlm/tlm_traverse.c:236: error: 'rv' may be used uninitialized in this function [-Wuninitialized] *** Error code 1 make: Fatal error: Command failed for target `tlm/tlm_traverse.o'