aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2022-04-22 16:42:41 -0400
committerDavid Robillard <d@drobilla.net>2022-04-23 21:18:56 -0400
commitadc8d07a210adcea86024121b53f28170141dae4 (patch)
tree32e7ac406504eea060456261bad8223cc7c706e2 /test
parentc7c45e1b7b32cb8a9cab173138e9ab7dedff2b12 (diff)
downloadpugl-adc8d07a210adcea86024121b53f28170141dae4.tar.gz
pugl-adc8d07a210adcea86024121b53f28170141dae4.tar.bz2
pugl-adc8d07a210adcea86024121b53f28170141dae4.zip
Move reserved platform defines from code to build system
Numerous things warn about this, and it's generally a bad idea to put these in the code since it can result in incompatibly compiled code being linked together. Unfortunately this makes building manually (without the build system) more fiddly, but such is life.
Diffstat (limited to 'test')
-rw-r--r--test/.clang-tidy1
-rw-r--r--test/meson.build1
-rw-r--r--test/test_utils.h2
3 files changed, 0 insertions, 4 deletions
diff --git a/test/.clang-tidy b/test/.clang-tidy
index 832c2d0..76de2d9 100644
--- a/test/.clang-tidy
+++ b/test/.clang-tidy
@@ -3,7 +3,6 @@ Checks: >
-*-magic-numbers,
-*-uppercase-literal-suffix,
-altera*,
- -bugprone-reserved-identifier,
-bugprone-suspicious-include,
-cert-dcl37-c,
-cert-dcl51-cpp,
diff --git a/test/meson.build b/test/meson.build
index 9de43da..893d824 100644
--- a/test/meson.build
+++ b/test/meson.build
@@ -162,7 +162,6 @@ elif is_variable('cpp')
if cpp.get_id() == 'clang'
unified_args += [
'-Wno-old-style-cast',
- '-Wno-reserved-id-macro',
'-Wno-switch-default',
'-Wno-switch-enum',
'-Wno-unused-macros', # Mac
diff --git a/test/test_utils.h b/test/test_utils.h
index fc4c1e0..0108435 100644
--- a/test/test_utils.h
+++ b/test/test_utils.h
@@ -4,8 +4,6 @@
#ifndef TEST_TEST_UTILS_H
#define TEST_TEST_UTILS_H
-#define __STDC_FORMAT_MACROS 1
-
#include "pugl/pugl.h"
#include <inttypes.h>