aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/cpp/.clang-tidy1
-rw-r--r--test/cpp/test_build.cpp4
-rw-r--r--test/test_atom.c1
3 files changed, 3 insertions, 3 deletions
diff --git a/test/cpp/.clang-tidy b/test/cpp/.clang-tidy
index b7981cc..02ee4b8 100644
--- a/test/cpp/.clang-tidy
+++ b/test/cpp/.clang-tidy
@@ -15,6 +15,7 @@ Checks: >
-cppcoreguidelines-pro-bounds-pointer-arithmetic,
-cppcoreguidelines-pro-type-cstyle-cast,
-cppcoreguidelines-pro-type-vararg,
+ -cppcoreguidelines-use-enum-class,
-hicpp-no-array-decay,
-hicpp-vararg,
-modernize-use-using,
diff --git a/test/cpp/test_build.cpp b/test/cpp/test_build.cpp
index 73868a4..19e8e56 100644
--- a/test/cpp/test_build.cpp
+++ b/test/cpp/test_build.cpp
@@ -1,7 +1,7 @@
// Copyright 2022 David Robillard <d@drobilla.net>
// SPDX-License-Identifier: ISC
-#if defined(__clang__)
+#ifdef __clang__
_Pragma("clang diagnostic push")
_Pragma("clang diagnostic ignored \"-Wold-style-cast\"")
_Pragma("clang diagnostic ignored \"-Wzero-as-null-pointer-constant\"")
@@ -47,7 +47,7 @@ main()
return 0;
}
-#if defined(__clang__)
+#ifdef __clang__
_Pragma("clang diagnostic pop")
#elif defined(__GNUC__)
_Pragma("GCC diagnostic pop")
diff --git a/test/test_atom.c b/test/test_atom.c
index f88c4c7..df684dc 100644
--- a/test/test_atom.c
+++ b/test/test_atom.c
@@ -10,7 +10,6 @@
#include <stdbool.h>
#include <stdint.h>
-#include <stdlib.h>
#include <string.h>
int