From 8f696d8d9775a1b9c4cda39ece12f7e9f8a1ec60 Mon Sep 17 00:00:00 2001 From: Sil Vilerino Date: Thu, 9 Jan 2025 10:54:52 -0500 Subject: [PATCH] d3d12: Enable Warnings C4267, C4996, C4146, C4244, C4389, C4838, C4302, C4018 in src/gallium/drivers/d3d12 subtree Reviewed-By: Jesse Natalie Reviewed-by: Jesse Natalie Part-of: --- src/gallium/drivers/d3d12/meson.build | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/gallium/drivers/d3d12/meson.build b/src/gallium/drivers/d3d12/meson.build index 2e4975f1aa9..ec6069fbf97 100644 --- a/src/gallium/drivers/d3d12/meson.build +++ b/src/gallium/drivers/d3d12/meson.build @@ -2,6 +2,18 @@ # SPDX-License-Identifier: MIT libd3d12_compiler_args = [] + +libd3d12_compiler_args += cc.get_supported_arguments([ + '/we4267', + '/we4996', + '/we4146', + '/we4244', + '/we4389', + '/we4838', + '/we4302', + '/we4018', + ]) + _with_gallium_d3d12_graphics = get_option('gallium-d3d12-graphics') with_gallium_d3d12_graphics = false if not _with_gallium_d3d12_graphics.disabled()