diff options
-rw-r--r-- | NEWS | 1 | ||||
-rw-r--r-- | include/lv2/atom/util.h | 4 | ||||
-rw-r--r-- | meson.build | 4 | ||||
-rw-r--r-- | meson_options.txt | 16 | ||||
-rw-r--r-- | plugins/.clang-tidy | 3 |
5 files changed, 15 insertions, 13 deletions
@@ -1,6 +1,7 @@ lv2 (1.18.11) unstable; urgency=medium * Allow LV2_SYMBOL_EXPORT to be overridden + * Avoid over-use of yielding meson options * Fix pylint warning in test script * Override pkg-config dependency within meson * Remove troublesome lv2_atom_assert_double_fits_in_64_bits diff --git a/include/lv2/atom/util.h b/include/lv2/atom/util.h index 9a3d8a3..32e8b6a 100644 --- a/include/lv2/atom/util.h +++ b/include/lv2/atom/util.h @@ -38,9 +38,7 @@ extern "C" { static inline uint32_t lv2_atom_pad_size(uint32_t size) { - static const uint32_t mask = 7U; - - return (size + mask) & ~mask; + return (size + 7U) & ~(7U); } /** Return the total size of `atom`, including the header. */ diff --git a/meson.build b/meson.build index 07698de..925b7c0 100644 --- a/meson.build +++ b/meson.build @@ -1,4 +1,4 @@ -# Copyright 2021-2022 David Robillard <d@drobilla.net> +# Copyright 2021-2025 David Robillard <d@drobilla.net> # SPDX-License-Identifier: 0BSD OR ISC project( @@ -8,6 +8,8 @@ project( 'b_ndebug=if-release', 'buildtype=release', 'c_std=c99', + 'c_winlibs=', + 'cpp_winlibs=', ], license: 'ISC', meson_version: '>= 0.56.0', diff --git a/meson_options.txt b/meson_options.txt index 2661999..91882da 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -1,25 +1,25 @@ -# Copyright 2021-2022 David Robillard <d@drobilla.net> +# Copyright 2021-2025 David Robillard <d@drobilla.net> # SPDX-License-Identifier: 0BSD OR ISC -option('docs', type: 'feature', yield: true, +option('docs', type: 'feature', description: 'Build documentation') -option('lint', type: 'boolean', value: false, yield: true, +option('lint', type: 'boolean', value: false, description: 'Run code quality checks') -option('lv2dir', type: 'string', value: '', yield: true, +option('lv2dir', type: 'string', value: '', description: 'LV2 bundle installation directory') -option('old_headers', type: 'boolean', value: true, yield: true, +option('old_headers', type: 'boolean', value: true, description: 'Install backwards compatible headers at URI-style paths') -option('online_docs', type: 'boolean', value: false, yield: true, +option('online_docs', type: 'boolean', value: false, description: 'Build documentation for online hosting') -option('plugins', type: 'feature', yield: true, +option('plugins', type: 'feature', description: 'Build example plugins') -option('tests', type: 'feature', yield: true, +option('tests', type: 'feature', description: 'Build tests') option('title', type: 'string', value: 'LV2', diff --git a/plugins/.clang-tidy b/plugins/.clang-tidy index 44bac70..b327b36 100644 --- a/plugins/.clang-tidy +++ b/plugins/.clang-tidy @@ -1,4 +1,4 @@ -# Copyright 2020-2023 David Robillard <d@drobilla.net> +# Copyright 2020-2025 David Robillard <d@drobilla.net> # SPDX-License-Identifier: 0BSD OR ISC Checks: > @@ -8,6 +8,7 @@ Checks: > -bugprone-multi-level-implicit-pointer-conversion, -bugprone-suspicious-realloc-usage, -cert-err33-c, + -clang-analyzer-core.NullDereference, -hicpp-signed-bitwise, -llvm-header-guard, -misc-unused-parameters, |