Skip to content

Commit bdecf12

Browse files
committed
mingw: fix compile warning when building without RUNTIME_PREFIX
Signed-off-by: Johannes Schindelin <[email protected]>
1 parent b963172 commit bdecf12

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

compat/mingw.c

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3653,11 +3653,14 @@ int xwcstoutf(char *utf, const wchar_t *wcs, size_t utflen)
36533653
}
36543654

36553655
#ifdef ENSURE_MSYSTEM_IS_SET
3656-
static size_t append_system_bin_dirs(char *path, size_t size)
3657-
{
36583656
#if !defined(RUNTIME_PREFIX) || !defined(HAVE_WPGMPTR)
3657+
static size_t append_system_bin_dirs(char *path UNUSED, size_t size UNUSED)
3658+
{
36593659
return 0;
3660+
}
36603661
#else
3662+
static size_t append_system_bin_dirs(char *path, size_t size)
3663+
{
36613664
char prefix[32768];
36623665
const char *slash;
36633666
size_t len = xwcstoutf(prefix, _wpgmptr, sizeof(prefix)), off = 0;
@@ -3689,9 +3692,9 @@ static size_t append_system_bin_dirs(char *path, size_t size)
36893692
off += xsnprintf(path + off, size - off,
36903693
"%.*s\\usr\\bin;", (int)len, prefix);
36913694
return off;
3692-
#endif
36933695
}
36943696
#endif
3697+
#endif
36953698

36963699
static int is_system32_path(const char *path)
36973700
{

0 commit comments

Comments
 (0)