Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/doitsujin/dxvk.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Ashton <joshua@froggi.es>2022-09-11 00:04:36 +0300
committerJoshua Ashton <joshua@froggi.es>2022-09-11 00:08:27 +0300
commitec8aa7c6e8307206e31b0c341735a21a24f65175 (patch)
tree4a4717e50ed64f36e77ec55bc424cdc253013e1e
parentd3cf444f84acc5c29c9a7249c76ed9f7512ebb9c (diff)
[build] Enable warning_level 2mix-warning-fixes
Compiles cleanly with GCC 12
-rw-r--r--meson.build6
1 files changed, 5 insertions, 1 deletions
diff --git a/meson.build b/meson.build
index b6efedce..ca51272e 100644
--- a/meson.build
+++ b/meson.build
@@ -1,4 +1,4 @@
-project('dxvk', ['c', 'cpp'], version : 'v1.10.1', meson_version : '>= 0.49', default_options : [ 'cpp_std=c++17' ])
+project('dxvk', ['c', 'cpp'], version : 'v1.10.1', meson_version : '>= 0.49', default_options : [ 'cpp_std=c++17', 'warning_level=2' ])
cpu_family = target_machine.cpu_family()
platform = target_machine.system()
@@ -13,6 +13,10 @@ compiler_args = [
'-msse3',
'-mfpmath=sse',
'-Wimplicit-fallthrough',
+ # gcc
+ '-Wno-missing-field-initializers',
+ '-Wno-unused-parameter',
+ '-Wno-cast-function-type', # Needed for GetProcAddress.
# clang
'-Wno-unused-private-field',
'-Wno-microsoft-exception-spec',