mirror of
https://github.com/harfbuzz/harfbuzz.git
synced 2025-04-13 08:42:59 +00:00
[test-object] See if this helps make ubsan happy
This commit is contained in:
parent
fb04a306fc
commit
8a1ba4d151
1 changed files with 4 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue