diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/scandir_posix.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/scandir_posix.c b/src/scandir_posix.c index 5daa7f5e2..34b05e4d9 100644 --- a/src/scandir_posix.c +++ b/src/scandir_posix.c @@ -203,6 +203,13 @@ fl_scandir(const char *dir, struct dirent ***namelist, return result; } +#else /* defined(USE_X11) && !defined(HAVE_SCANDIR) */ + +/* avoid (gcc) compiler warning [-Wpedantic] + "ISO C forbids an empty translation unit" */ + +typedef int dummy; + #endif /* defined(USE_X11) && !defined(HAVE_SCANDIR) */ /* |
