Skip to content

build: Check size_t compatibility with various other types

Philip Withnall requested to merge pwithnall/glib:1777-sizet-checks into master

When choosing the type to base size_t on, check the compatibility of passing pointers, as well as the width of the type, to avoid compiler warnings in future.

For now, the code to do the checks is fairly ugly due to limitations in Meson. In particular, the new checks are limited to gcc and clang (other compilers will behave as before), and they are all duplicated. See the comments in the code for links to Meson improvement requests.

Signed-off-by: Philip Withnall withnall@endlessm.com

Fixes: #1777 (closed)

Merge request reports