Skip to content

Commit

Permalink
reduce compiler warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
lewurm authored and monojenkins committed Mar 20, 2018
1 parent deb3474 commit 3931767
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion mono/metadata/w32file-unix.c
Original file line number Diff line number Diff line change
Expand Up @@ -345,6 +345,7 @@ _wapi_chmod (const gchar *pathname, mode_t mode)
return ret;
}

#ifndef HAVE_STRUCT_TIMEVAL
static gint
_wapi_utime (const gchar *filename, const struct utimbuf *buf)
{
Expand All @@ -371,7 +372,7 @@ _wapi_utime (const gchar *filename, const struct utimbuf *buf)
return ret;
}

#ifdef HAVE_STRUCT_TIMEVAL
#else
static gint
_wapi_utimes (const gchar *filename, const struct timeval times[2])
{
Expand Down Expand Up @@ -1445,6 +1446,7 @@ convert_unix_filetime_ms (const FILETIME *file_time, const char *ttype)
return t - CONVERT_BASE;
}

#ifndef HAVE_STRUCT_TIMEVAL
static guint64
convert_unix_filetime (const FILETIME *file_time, size_t field_size, const char *ttype)
{
Expand All @@ -1458,6 +1460,7 @@ convert_unix_filetime (const FILETIME *file_time, size_t field_size, const char

return t / 10000000;
}
#endif

static gboolean file_setfiletime(FileHandle *filehandle,
const FILETIME *create_time G_GNUC_UNUSED,
Expand Down

0 comments on commit 3931767

Please sign in to comment.