mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-22 15:31:05 +01:00
[test-object] See if this helps make ubsan happy
This commit is contained in:
1 parent
fb04a306fc
commit
8a1ba4d151
1 file changed
+4
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user