diff options
author | David Robillard <d@drobilla.net> | 2021-09-10 20:11:46 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2021-09-10 20:54:28 -0400 |
commit | 904c1b4d699aeb1ce170f0cd996a01d2d06812e3 (patch) | |
tree | 35a4a9f75a395a958ab0ea5fffeca81ce733bbc1 /meson.build | |
parent | 1f8c8118f2d42f495dbe6e3adb2a95c87a92e8e0 (diff) | |
download | zix-904c1b4d699aeb1ce170f0cd996a01d2d06812e3.tar.gz zix-904c1b4d699aeb1ce170f0cd996a01d2d06812e3.tar.bz2 zix-904c1b4d699aeb1ce170f0cd996a01d2d06812e3.zip |
Add nullability annotations
This allows clang to issue warnings at compile time when null is passed to a
non-null parameter. For public entry points, also add assertions to catch such
issues when the compiler does not support this.
Diffstat (limited to 'meson.build')
-rw-r--r-- | meson.build | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/meson.build b/meson.build index 7b8e872..f732a5f 100644 --- a/meson.build +++ b/meson.build @@ -28,6 +28,7 @@ if get_option('strict') c_warnings = [ '-Weverything', '-Wno-bad-function-cast', + '-Wno-nullability-extension', '-Wno-padded', '-Wno-reserved-id-macro', ] |