From 169a8ee238fd9a8f9f40452ce897e20a4022a4ab Mon Sep 17 00:00:00 2001 From: Albrecht Schlosser Date: Sat, 12 Nov 2016 13:49:48 +0000 Subject: 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 --- src/scandir_posix.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src') 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) */ /* -- cgit v1.2.3