зеркало из https://github.com/microsoft/git.git
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>
This commit is contained in:
Родитель
13f1df432e
Коммит
a15d4af449
|
@ -372,7 +372,7 @@ static int mingw_main(c,v); \
|
||||||
int main(int argc, char **argv) \
|
int main(int argc, char **argv) \
|
||||||
{ \
|
{ \
|
||||||
mingw_startup(); \
|
mingw_startup(); \
|
||||||
return mingw_main(__argc, __argv); \
|
return mingw_main(__argc, (void *)__argv); \
|
||||||
} \
|
} \
|
||||||
static int mingw_main(c,v)
|
static int mingw_main(c,v)
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче