[test-object] See if this helps make ubsan happy

This commit is contained in:
Behdad Esfahbod 2025-04-06 18:12:22 -06:00
parent fb04a306fc
commit 8a1ba4d151

View file

@ -136,6 +136,9 @@ typedef struct {
const char *name;
} object_t;
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wcast-function-type"
#define OBJECT_WITHOUT_IMMUTABILITY(name) \
{ \
(create_func_t) create_##name, \
@ -363,6 +366,7 @@ test_object (void)
}
}
#pragma GCC diagnostic pop
int
main (int argc, char **argv)