compiler warning on macOS
Closed this issue · 1 comments
jxsl13 commented
compiling using gcc...
src/dep_cpp.c:344:2: warning: no newline at end of file [-Wnewline-eof]
}
^
1 warning generated.
src/support.c:367:7: warning: variable 'isdir' is used uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized]
if(!have_d_type) {
^~~~~~~~~~~~
src/support.c:374:36: note: uninitialized use occurs here
callback(buffer, entry->d_name, isdir, user);
^~~~~
src/support.c:367:4: note: remove the 'if' if its condition is always true
if(!have_d_type) {
^~~~~~~~~~~~~~~~~
src/support.c:355:13: note: initialize the variable 'isdir' to silence this warning
int isdir;
^
= 0
1 warning generated.