Skip to content

Commit

Permalink
Avoid "empty translation unit" compiler warning.
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Albrecht Schlosser committed Nov 12, 2016
1 parent 1358c43 commit 169a8ee
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/scandir_posix.c
Expand Up @@ -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) */

/*
Expand Down

0 comments on commit 169a8ee

Please sign in to comment.