Skip to content

Commit

Permalink
Remove unused functions and variables in platform_windows.
Browse files Browse the repository at this point in the history
Under gcc 5.3.0, the presence of these functions and variables generate unused
function / unused variable warnings, which in combination with -Werror causes
a compile error.
  • Loading branch information
hannahwhy committed Aug 15, 2016
1 parent 9293c3d commit 51f0807
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/platform_windows.c
Expand Up @@ -480,14 +480,6 @@ void *__PHYSFS_platformGetThreadID(void)
return ( (void *) ((size_t) GetCurrentThreadId()) );
} /* __PHYSFS_platformGetThreadID */


static int isSymlinkAttrs(const DWORD attr, const DWORD tag)
{
return ( (attr & FILE_ATTRIBUTE_REPARSE_POINT) &&
(tag == PHYSFS_IO_REPARSE_TAG_SYMLINK) );
} /* isSymlinkAttrs */


void __PHYSFS_platformEnumerateFiles(const char *dirname,
PHYSFS_EnumFilesCallback callback,
const char *origdir,
Expand Down Expand Up @@ -530,8 +522,6 @@ void __PHYSFS_platformEnumerateFiles(const char *dirname,

do
{
const DWORD attr = entw.dwFileAttributes;
const DWORD tag = entw.dwReserved0;
const WCHAR *fn = entw.cFileName;
char *utf8;

Expand Down

0 comments on commit 51f0807

Please sign in to comment.