mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-13 07:56:17 +01:00
Fix detecting size_t size when -Wmissing-prototypes
is in CFLAGS
As this test includes `-Werror`, we need to be extra careful in which warnings this code could trigger.
This commit is contained in:
parent
30d6e911c4
commit
7e9f2dadc6
@ -1699,7 +1699,7 @@ if cc.get_id() == 'gcc' or cc.get_id() == 'clang'
|
||||
g_sizet_compatibility += { type_name: size_compatibility and
|
||||
cc.compiles(
|
||||
'''#include <stddef.h>
|
||||
size_t f (size_t *i) { return *i + 1; }
|
||||
static size_t f (size_t *i) { return *i + 1; }
|
||||
int main (void) {
|
||||
unsigned ''' + type_name + ''' i = 0;
|
||||
f (&i);
|
||||
|
Loading…
Reference in New Issue
Block a user