diff options
author | David Robillard <d@drobilla.net> | 2024-01-09 17:43:43 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2024-01-09 17:43:43 -0500 |
commit | b3035563fdb6597354179093c7024639b9a7148e (patch) | |
tree | 99057ad0834f060ff5421ff6013f22eead299dca | |
parent | 19a670806390d1980f3471710ba3a5af3d0bd64b (diff) | |
download | sratom-b3035563fdb6597354179093c7024639b9a7148e.tar.gz sratom-b3035563fdb6597354179093c7024639b9a7148e.tar.bz2 sratom-b3035563fdb6597354179093c7024639b9a7148e.zip |
Enable clang nullability checks
-rw-r--r-- | NEWS | 6 | ||||
-rw-r--r-- | meson.build | 4 | ||||
-rw-r--r-- | meson/suppressions/meson.build | 3 | ||||
-rw-r--r-- | src/sratom.c | 8 |
4 files changed, 14 insertions, 7 deletions
@@ -1,3 +1,9 @@ +sratom (0.6.17) unstable; urgency=medium + + * Enable clang nullability checks + + -- David Robillard <d@drobilla.net> Tue, 09 Jan 2024 22:42:39 +0000 + sratom (0.6.16) stable; urgency=medium * Clean up code diff --git a/meson.build b/meson.build index af9d5a3..d72af33 100644 --- a/meson.build +++ b/meson.build @@ -1,4 +1,4 @@ -# Copyright 2021-2022 David Robillard <d@drobilla.net> +# Copyright 2021-2024 David Robillard <d@drobilla.net> # SPDX-License-Identifier: 0BSD OR ISC project( @@ -11,7 +11,7 @@ project( ], license: 'ISC', meson_version: '>= 0.56.0', - version: '0.6.16', + version: '0.6.17', ) sratom_src_root = meson.current_source_dir() diff --git a/meson/suppressions/meson.build b/meson/suppressions/meson.build index 542b00e..85f3daa 100644 --- a/meson/suppressions/meson.build +++ b/meson/suppressions/meson.build @@ -1,4 +1,4 @@ -# Copyright 2020-2023 David Robillard <d@drobilla.net> +# Copyright 2020-2024 David Robillard <d@drobilla.net> # SPDX-License-Identifier: 0BSD OR ISC # Project-specific warning suppressions @@ -23,7 +23,6 @@ if cc.get_id() == 'clang' '-Wno-float-conversion', '-Wno-implicit-float-conversion', '-Wno-implicit-int-conversion', - '-Wno-nullable-to-nonnull-conversion', '-Wno-padded', '-Wno-shorten-64-to-32', '-Wno-sign-conversion', diff --git a/src/sratom.c b/src/sratom.c index 447abef..da6fae4 100644 --- a/src/sratom.c +++ b/src/sratom.c @@ -1,4 +1,4 @@ -// Copyright 2012-2021 David Robillard <d@drobilla.net> +// Copyright 2012-2024 David Robillard <d@drobilla.net> // SPDX-License-Identifier: ISC #include "sratom/sratom.h" @@ -107,7 +107,7 @@ sratom_set_sink(Sratom* sratom, serd_node_free(&sratom->base_uri); sratom->base_uri = serd_node_new_uri_from_string(USTR(base_uri), NULL, NULL); - serd_uri_parse(sratom->base_uri.buf, &sratom->base); + serd_uri_parse((const uint8_t*)sratom->base_uri.buf, &sratom->base); } sratom->write_statement = sink; sratom->end_anon = end_sink; @@ -801,7 +801,9 @@ read_node(Sratom* sratom, SerdNode rel = serd_node_new_relative_uri(&uri, &sratom->base, &sratom->base, NULL); - uint8_t* path = serd_file_uri_parse(rel.buf, NULL); + + uint8_t* const path = serd_file_uri_parse((const uint8_t*)rel.buf, NULL); + if (path) { lv2_atom_forge_path( forge, (const char*)path, strlen((const char*)path)); |