summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2024-01-09 17:41:39 -0500
committerDavid Robillard <d@drobilla.net>2024-01-09 17:44:01 -0500
commit40e41b28e69313844492cfd605cdfa93a819cf7d (patch)
tree32bb5482f8fdc129a995f75d28bbd98214e2ab59
parentc7f822f14aae0367e184c847379496bc28adf63d (diff)
downloadsord-40e41b28e69313844492cfd605cdfa93a819cf7d.tar.gz
sord-40e41b28e69313844492cfd605cdfa93a819cf7d.tar.bz2
sord-40e41b28e69313844492cfd605cdfa93a819cf7d.zip
Enable clang nullability checks
-rw-r--r--NEWS6
-rw-r--r--meson.build4
-rw-r--r--meson/suppressions/meson.build1
-rw-r--r--src/sord.c2
-rw-r--r--src/sord_config.h4
5 files changed, 11 insertions, 6 deletions
diff --git a/NEWS b/NEWS
index 2d7d2a7..cd59f70 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,9 @@
+sord (0.16.17) unstable; urgency=medium
+
+ * Enable clang nullability checks
+
+ -- David Robillard <d@drobilla.net> Tue, 09 Jan 2024 22:40:57 +0000
+
sord (0.16.16) stable; urgency=medium
* Allow SORD_API to be defined by the user
diff --git a/meson.build b/meson.build
index feba3de..760b5a0 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.16.16',
+ version: '0.16.17',
)
sord_src_root = meson.current_source_dir()
diff --git a/meson/suppressions/meson.build b/meson/suppressions/meson.build
index 7eb5eb6..0dd7f2b 100644
--- a/meson/suppressions/meson.build
+++ b/meson/suppressions/meson.build
@@ -21,7 +21,6 @@ if cc.get_id() in ['clang', 'emscripten']
'-Wno-declaration-after-statement',
'-Wno-double-promotion',
'-Wno-format-nonliteral',
- '-Wno-nullable-to-nonnull-conversion',
'-Wno-padded',
'-Wno-reserved-id-macro',
'-Wno-sign-conversion',
diff --git a/src/sord.c b/src/sord.c
index 1189c5b..d605826 100644
--- a/src/sord.c
+++ b/src/sord.c
@@ -172,7 +172,7 @@ sord_node_hash(const SordNode* const node)
{
size_t hash = 0U;
- hash = zix_digest(hash, node->node.buf, node->node.n_bytes);
+ hash = zix_digest(hash, (const uint8_t*)node->node.buf, node->node.n_bytes);
hash = zix_digest(hash, &node->node.type, sizeof(node->node.type));
if (node->node.type == SERD_LITERAL) {
hash = zix_digest(hash, &node->meta.lit, sizeof(node->meta.lit));
diff --git a/src/sord_config.h b/src/sord_config.h
index ff639b0..6df5b85 100644
--- a/src/sord_config.h
+++ b/src/sord_config.h
@@ -1,4 +1,4 @@
-// Copyright 2021 David Robillard <d@drobilla.net>
+// Copyright 2021-2024 David Robillard <d@drobilla.net>
// SPDX-License-Identifier: ISC
/*
@@ -16,7 +16,7 @@
#define SORD_CONFIG_H
// Define version unconditionally so a warning will catch a mismatch
-#define SORD_VERSION "0.16.16"
+#define SORD_VERSION "0.16.17"
#if !defined(SORD_NO_DEFAULT_CONFIG)