diff options
author | Marco Trevisan (Treviño) <mail@3v1n0.net> | 2022-12-16 20:48:40 +0100 |
---|---|---|
committer | Marco Trevisan (Treviño) <mail@3v1n0.net> | 2022-12-16 20:48:47 +0100 |
commit | e9979b540f225bb45d3ba0d518f7efb39663311d (patch) | |
tree | cc50e32e704cf4eaaac966d30d228127098b456e | |
parent | 938a1caf89e2fd27a204cce136214532b452279b (diff) | |
download | glib-e9979b540f225bb45d3ba0d518f7efb39663311d.tar.gz |
meson: Add test to check for strict cast alignments if supported
-rw-r--r-- | gobject/tests/meson.build | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/gobject/tests/meson.build b/gobject/tests/meson.build index bf5ab659c..a880dfb33 100644 --- a/gobject/tests/meson.build +++ b/gobject/tests/meson.build @@ -76,7 +76,13 @@ gobject_tests = { 'signalgroup' : {}, 'testing' : {}, 'type-flags' : {}, - 'objects-refcount1' : {}, + 'objects-refcount1' : { + 'c_args': cc.get_supported_arguments([ + '-DG_DISABLE_CAST_CHECKS', + '-Werror', + '-Wcast-align=strict', + ]), + }, 'objects-refcount2' : {'suite' : ['slow']}, 'properties-refcount1' : {}, 'properties-refcount2' : {'suite' : ['slow']}, |