From c9a1db95b879a593427b6943c876eb682758d127 Mon Sep 17 00:00:00 2001 From: Peter Breitenlohner Date: Tue, 14 Jan 2014 08:08:35 +0000 Subject: kpathsea [MinGW32]: Avoid compiler warnings git-svn-id: svn://tug.org/texlive/trunk@32671 c570f23f-e606-0410-a88d-b1316a301751 --- Build/source/texk/kpathsea/ChangeLog | 5 +++++ Build/source/texk/kpathsea/knj.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/Build/source/texk/kpathsea/ChangeLog b/Build/source/texk/kpathsea/ChangeLog index 19af64518d9..0d8dfdf6697 100644 --- a/Build/source/texk/kpathsea/ChangeLog +++ b/Build/source/texk/kpathsea/ChangeLog @@ -1,3 +1,8 @@ +2014-01-14 Peter Breitenlohner + + * knj.c: Add #include as required for MinGW32. + Cast arg3 of fsyscp_spawnvp() to avoid warning. + 2014-01-14 Akira Kakuto * knj.[ch]: Add new functions fsyscp_spawnvp(), and fsyscp_system(). diff --git a/Build/source/texk/kpathsea/knj.c b/Build/source/texk/kpathsea/knj.c index 174256a915c..52b4a43b9bc 100644 --- a/Build/source/texk/kpathsea/knj.c +++ b/Build/source/texk/kpathsea/knj.c @@ -18,6 +18,7 @@ #include #include +#include int is_cp932_system, file_system_codepage; @@ -324,7 +325,7 @@ fsyscp_system (const char *cmd) *q++ = '"'; *q = '\0'; av[3] = NULL; - ret = fsyscp_spawnvp (_P_WAIT, av[0], av); + ret = fsyscp_spawnvp (_P_WAIT, av[0], (const char* const*) av); free (av[0]); free (av[1]); free (av[2]); -- cgit v1.2.3