From a15d4af4497d147bfdb672e121b67db335ec1c21 Mon Sep 17 00:00:00 2001 From: Stepan Kasal Date: Sat, 7 Jun 2014 08:46:41 +0200 Subject: [PATCH] mingw: avoid const warning Fix const warnings in http-fetch.c and remote-curl.c main() where is argv declared as const. The fix should work for all future declarations of main, no matter whether the second parameter's type is "char**", "const char**", or "char *[]". Signed-off-by: Stepan Kasal Signed-off-by: Junio C Hamano --- compat/mingw.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compat/mingw.h b/compat/mingw.h index 15f0c9d790..6dc8b1a1b4 100644 --- a/compat/mingw.h +++ b/compat/mingw.h @@ -372,7 +372,7 @@ static int mingw_main(c,v); \ int main(int argc, char **argv) \ { \ mingw_startup(); \ - return mingw_main(__argc, __argv); \ + return mingw_main(__argc, (void *)__argv); \ } \ static int mingw_main(c,v) -- 2.11.4.GIT