aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2022-04-22 16:22:54 -0400
committerDavid Robillard <d@drobilla.net>2022-04-23 21:18:56 -0400
commitc7c45e1b7b32cb8a9cab173138e9ab7dedff2b12 (patch)
treeab4ef03b78c530a2950fa33b1e527227a3a2b457
parentcd702ff73abe4ec5f4d427d9c7e894fa79e6a146 (diff)
downloadpugl-c7c45e1b7b32cb8a9cab173138e9ab7dedff2b12.tar.gz
pugl-c7c45e1b7b32cb8a9cab173138e9ab7dedff2b12.tar.bz2
pugl-c7c45e1b7b32cb8a9cab173138e9ab7dedff2b12.zip
Suppress warnings when building with clang on Windows
-rw-r--r--meson.build7
-rw-r--r--src/.clang-tidy1
2 files changed, 8 insertions, 0 deletions
diff --git a/meson.build b/meson.build
index 992dab8..8f7d3b0 100644
--- a/meson.build
+++ b/meson.build
@@ -55,6 +55,13 @@ if get_option('strict')
c_warnings += [
'-Wno-poison-system-directories',
]
+ elif host_machine.system() == 'windows'
+ c_warnings += [
+ '-Wno-deprecated-declarations',
+ '-Wno-format-nonliteral',
+ '-Wno-nonportable-system-include-path',
+ '-Wno-unused-macros',
+ ]
endif
elif cc.get_id() == 'gcc'
c_warnings += [
diff --git a/src/.clang-tidy b/src/.clang-tidy
index 70b522f..29f7e2e 100644
--- a/src/.clang-tidy
+++ b/src/.clang-tidy
@@ -12,6 +12,7 @@ Checks: >
-hicpp-signed-bitwise,
-llvm-header-guard,
-llvmlibc-*,
+ -performance-no-int-to-ptr,
-readability-function-cognitive-complexity,
FormatStyle: file
HeaderFilterRegex: 'pugl/.*'