mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-03-29 04:06:24 +01:00
[build] Enable warning_level 2
Compiles cleanly with GCC 12
This commit is contained in:
parent
64d88c684d
commit
f9bd1a5d79
@ -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()
|
cpu_family = target_machine.cpu_family()
|
||||||
platform = target_machine.system()
|
platform = target_machine.system()
|
||||||
@ -13,6 +13,10 @@ compiler_args = [
|
|||||||
'-msse3',
|
'-msse3',
|
||||||
'-mfpmath=sse',
|
'-mfpmath=sse',
|
||||||
'-Wimplicit-fallthrough',
|
'-Wimplicit-fallthrough',
|
||||||
|
# gcc
|
||||||
|
'-Wno-missing-field-initializers',
|
||||||
|
'-Wno-unused-parameter',
|
||||||
|
'-Wno-cast-function-type', # Needed for GetProcAddress.
|
||||||
# clang
|
# clang
|
||||||
'-Wno-unused-private-field',
|
'-Wno-unused-private-field',
|
||||||
'-Wno-microsoft-exception-spec',
|
'-Wno-microsoft-exception-spec',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user