diff options
author | Stepan Kasal <kasal@ucw.cz> | 2014-06-07 08:46:41 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2014-06-10 13:31:01 -0700 |
commit | a15d4af4497d147bfdb672e121b67db335ec1c21 (patch) | |
tree | 78b5e36ffa59de3fd94ad11a0ec1d759c82ca6c8 /compat | |
parent | 13f1df432ea78a9dda2e70036215f754db182934 (diff) | |
download | git-a15d4af4497d147bfdb672e121b67db335ec1c21.tar.gz |
mingw: avoid const warningsk/mingw-main
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 <kasal@ucw.cz>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'compat')
-rw-r--r-- | compat/mingw.h | 2 |
1 files changed, 1 insertions, 1 deletions
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) |