diff options
| author | Albrecht Schlosser <albrechts.fltk@online.de> | 2016-11-12 13:49:48 +0000 |
|---|---|---|
| committer | Albrecht Schlosser <albrechts.fltk@online.de> | 2016-11-12 13:49:48 +0000 |
| commit | 169a8ee238fd9a8f9f40452ce897e20a4022a4ab (patch) | |
| tree | 2d98a0eda6496771c3867410102bf26bdb1ca171 | |
| parent | 1358c434b227276896a08e07000dbd56acb3f49c (diff) | |
Avoid "empty translation unit" compiler warning.
gcc "warning: ISO C forbids an empty translation unit [-Wpedantic]"
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12107 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
| -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) */ /* |
