From f9bd1a5d7965d945b8a5783c09c01e0a7f3d3b74 Mon Sep 17 00:00:00 2001 From: Joshua Ashton Date: Sat, 10 Sep 2022 21:04:36 +0000 Subject: [PATCH] [build] Enable warning_level 2 Compiles cleanly with GCC 12 --- meson.build | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/meson.build b/meson.build index b6efedce8..ca51272e1 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',