summaryrefslogtreecommitdiff
path: root/compat
diff options
context:
space:
mode:
authorStepan Kasal <kasal@ucw.cz>2014-06-07 06:46:41 (GMT)
committerJunio C Hamano <gitster@pobox.com>2014-06-10 20:31:01 (GMT)
commita15d4af4497d147bfdb672e121b67db335ec1c21 (patch)
tree78b5e36ffa59de3fd94ad11a0ec1d759c82ca6c8 /compat
parent13f1df432ea78a9dda2e70036215f754db182934 (diff)
downloadgit-a15d4af4497d147bfdb672e121b67db335ec1c21.zip
git-a15d4af4497d147bfdb672e121b67db335ec1c21.tar.gz
git-a15d4af4497d147bfdb672e121b67db335ec1c21.tar.bz2
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 <kasal@ucw.cz> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'compat')
-rw-r--r--compat/mingw.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/compat/mingw.h b/compat/mingw.h
index 15f0c9d..6dc8b1a 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)