From dbdbe3e518daf7b2f3f0e7587d8b2493b1d5a59e Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 4 Feb 2023 22:08:42 -0500 Subject: Fix clang and clang-tidy warnings in Windows --- include/lv2/atom/util.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'include/lv2/atom') diff --git a/include/lv2/atom/util.h b/include/lv2/atom/util.h index 3f78e41..f641619 100644 --- a/include/lv2/atom/util.h +++ b/include/lv2/atom/util.h @@ -356,7 +356,7 @@ lv2_atom_object_body_get(uint32_t size, const LV2_Atom_Object_Body* body, ...) int n_queries = 0; /* Count number of keys so we can short-circuit when done */ - va_list args; + va_list args; // NOLINT(cppcoreguidelines-init-variables) va_start(args, body); for (n_queries = 0; va_arg(args, uint32_t); ++n_queries) { if (!va_arg(args, const LV2_Atom**)) { @@ -411,7 +411,7 @@ lv2_atom_object_get(const LV2_Atom_Object* object, ...) int n_queries = 0; /* Count number of keys so we can short-circuit when done */ - va_list args; + va_list args; // NOLINT(cppcoreguidelines-init-variables) va_start(args, object); for (n_queries = 0; va_arg(args, uint32_t); ++n_queries) { if (!va_arg(args, const LV2_Atom**)) { @@ -467,7 +467,7 @@ lv2_atom_object_get_typed(const LV2_Atom_Object* object, ...) int n_queries = 0; /* Count number of keys so we can short-circuit when done */ - va_list args; + va_list args; // NOLINT(cppcoreguidelines-init-variables) va_start(args, object); for (n_queries = 0; va_arg(args, uint32_t); ++n_queries) { if (!va_arg(args, const LV2_Atom**) || !va_arg(args, uint32_t)) { -- cgit v1.2.1