Browse Source

Initialize all variables

zrythm_meson
David Robillard 2 years ago
parent
commit
9b9ca021d6
  1. 1
      .clang-tidy
  2. 2
      plugins/eg-params.lv2/state_map.h

1
.clang-tidy

@ -6,7 +6,6 @@ Checks: > @@ -6,7 +6,6 @@ Checks: >
-clang-diagnostic-empty-translation-unit,
-clang-diagnostic-unused-function,
-clang-diagnostic-unused-macros,
-cppcoreguidelines-init-variables,
-hicpp-signed-bitwise,
-llvm-header-guard,
-readability-else-after-return,

2
plugins/eg-params.lv2/state_map.h

@ -81,7 +81,7 @@ state_map_init(StateMapItem dict[], @@ -81,7 +81,7 @@ state_map_init(StateMapItem dict[],
unsigned i = 0;
va_list args;
va_start(args, handle);
for (const char* uri; (uri = va_arg(args, const char*)); ++i) {
for (const char* uri = NULL; (uri = va_arg(args, const char*)); ++i) {
const char* type = va_arg(args, const char*);
const uint32_t size = va_arg(args, uint32_t);
LV2_Atom* const value = va_arg(args, LV2_Atom*);

Loading…
Cancel
Save