fltk/CMake/posixScandir.cxx
Albrecht Schlosser 601e86fba5 CMake: fix potential compiler warning in test file.
clang reports: control reaches end of non-void function [-Wreturn-type]


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12283 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
2017-06-29 18:27:07 +00:00

12 lines
198 B
C++

#include <dirent.h>
int func (const char *d, dirent ***list, void *sort) {
int n = scandir(d, list, 0, (int(*)(const dirent **, const dirent **))sort);
return n;
}
int main() {
return 0;
}