Skip to content

Commit a15d4af

Browse files
kasalgitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 13f1df4 commit a15d4af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compat/mingw.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ static int mingw_main(c,v); \
372372
int main(int argc, char **argv) \
373373
{ \
374374
mingw_startup(); \
375-
return mingw_main(__argc, __argv); \
375+
return mingw_main(__argc, (void *)__argv); \
376376
} \
377377
static int mingw_main(c,v)
378378

0 commit comments

Comments
 (0)