aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.clang-tidy1
-rw-r--r--plugins/eg-params.lv2/state_map.h2
2 files changed, 1 insertions, 2 deletions
diff --git a/.clang-tidy b/.clang-tidy
index e46c5e8..4026e2b 100644
--- a/.clang-tidy
+++ b/.clang-tidy
@@ -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,
diff --git a/plugins/eg-params.lv2/state_map.h b/plugins/eg-params.lv2/state_map.h
index c80d4a2..740f0af 100644
--- a/plugins/eg-params.lv2/state_map.h
+++ b/plugins/eg-params.lv2/state_map.h
@@ -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*);