win32: silence some warnings

Signed-off-by: wm4 <wm4@nowhere>
This commit is contained in:
James Ross-Gowan 2014-11-08 17:17:43 +11:00 committed by wm4
parent 9f239464da
commit cee0d7f2ad
2 changed files with 3 additions and 1 deletions

View File

@ -44,6 +44,7 @@
#include "osdep/io.h"
#include "osdep/path.h"
#if !defined(_WIN32) || defined(__CYGWIN__)
static int mp_add_xdg_config_dirs(struct mpv_global *global, char **dirs, int i)
{
void *talloc_ctx = dirs;
@ -77,6 +78,7 @@ static int mp_add_xdg_config_dirs(struct mpv_global *global, char **dirs, int i)
return i;
}
#endif
// Return NULL-terminated array of config directories, from highest to lowest
// priority

View File

@ -65,7 +65,7 @@ int mp_make_cloexec_pipe(int pipes[2])
#ifdef __MINGW32__
int mp_make_wakeup_pipe(int pipes[2])
{
mp_make_cloexec_pipe(pipes);
return mp_make_cloexec_pipe(pipes);
}
#else
// create a pipe, and set it to non-blocking (and also set FD_CLOEXEC)