From adc8d07a210adcea86024121b53f28170141dae4 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 22 Apr 2022 16:42:41 -0400 Subject: 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. --- test/.clang-tidy | 1 - test/meson.build | 1 - test/test_utils.h | 2 -- 3 files changed, 4 deletions(-) (limited to 'test') 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 -- cgit v1.2.1