Skip to content

Commit c5282f6

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

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
@@ -3648,11 +3648,14 @@ int xwcstoutf(char *utf, const wchar_t *wcs, size_t utflen)
36483648
}
36493649

36503650
#ifdef ENSURE_MSYSTEM_IS_SET
3651-
static size_t append_system_bin_dirs(char *path, size_t size)
3652-
{
36533651
#if !defined(RUNTIME_PREFIX) || !defined(HAVE_WPGMPTR)
3652+
static size_t append_system_bin_dirs(char *path UNUSED, size_t size UNUSED)
3653+
{
36543654
return 0;
3655+
}
36553656
#else
3657+
static size_t append_system_bin_dirs(char *path, size_t size)
3658+
{
36563659
char prefix[32768];
36573660
const char *slash;
36583661
size_t len = xwcstoutf(prefix, _wpgmptr, sizeof(prefix)), off = 0;
@@ -3684,9 +3687,9 @@ static size_t append_system_bin_dirs(char *path, size_t size)
36843687
off += xsnprintf(path + off, size - off,
36853688
"%.*s\\usr\\bin;", (int)len, prefix);
36863689
return off;
3687-
#endif
36883690
}
36893691
#endif
3692+
#endif
36903693

36913694
static int is_system32_path(const char *path)
36923695
{

0 commit comments

Comments
 (0)