git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH 6/6] sparse: Fix mingw_main() argument number/type errors

From
Junio C Hamano <gitster@pobox.com>
Date
Apr 28, 2013, 19:31 UTC
Message-ID
<7v38uaqwow.fsf@alter.siamese.dyndns.org>
In-Reply-To
<517C6DEF.2050305@lsrfire.ath.cx>
René Scharfe <rene.scharfe@lsrfire.ath.cx> writes:
Show 13 quoted lines
> Why not take the opposite direction with a patch like this?
> ...
> diff --git a/compat/mingw.h b/compat/mingw.h
> index 389ae01..74e7b87 100644
> --- a/compat/mingw.h
> +++ b/compat/mingw.h
> @@ -452,11 +452,11 @@ int xwcstoutf(char *utf, const wchar_t *wcs, size_t utflen);
>  
>  void mingw_startup();
>  #define main(c,v) dummy_decl_mingw_main(); \
> -static int mingw_main(); \
> +static int mingw_main(int, const char **); \
>  int main(int argc, const char **argv) \
But traditionally main is declared like 
	int main(int argc, char *argv[]);
without const, no?
Previous: René ScharfeNext: René Scharfe
Message 3 of 6 in “sparse: Fix mingw_main() argument number/type errors”
  1. 6/6 sparse: Fix mingw_main() argument number/type errorsRamsay Jones, Apr 27, 2013
  2. René ScharfeApr 28, 2013
  3. Junio C HamanoApr 28, 2013
  4. René ScharfeApr 29, 2013
  5. Ramsay JonesApr 29, 2013
  6. Ramsay JonesApr 29, 2013

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.