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

Re: [PATCH 01/12] meson.build: remove -DCURL_DISABLE_TYPECHECK

From
Patrick Steinhardt <ps@pks.im>
Date
Mar 19, 2025, 13:36 UTC
Message-ID
<Z9rIcPprrsKtJkmV@pks.im>
In-Reply-To
<d230e5a7-1b3d-4cf9-b30e-69471d1fbe9a@ramsayjones.plus.com>
On Sat, Mar 15, 2025 at 02:46:23AM +0000, Ramsay Jones wrote:
Show 16 quoted lines
> 
> Commit 9371322a60 ("sparse: suppress some \"using sizeof on a function\"
> warnings", 2013-10-06) used target-specific variable assignments to add
> -DCURL_DISABLE_TYPECHECK to SPARSE_FLAGS for each of the files affected
> by the "typecheck-gcc.h" warnings. (http-push.c, http.c, http-walker.c
> and remote-curl.c).
> 
> These warnings are only issued by sparse, and not by gcc, so we do not
> want to disable the 'type checking' for non-sparse targets. The meson
> build does not provide any sparse targets, so there is no need to use
> the CURL_DISABLE_TYPECHECK preprocessor flag with the c compiler.
> 
> In order to re-enable the curl 'type checking' in the meson build, remove
> the assignment of -DCURL_DISABLE_TYPECHECK to libgit_c_args.
> 
> Signed-off-by: Ramsay Jones <ramsay@ramsayjones.plus.com>
Makes sense indeed.
Patrick
Previous: Ramsay Jones
Message 2 of 2 in “meson.build: remove -DCURL_DISABLE_TYPECHECK”
  1. 01/12 meson.build: remove -DCURL_DISABLE_TYPECHECKRamsay Jones, Mar 15, 2025
  2. Patrick SteinhardtMar 19, 2025

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.