[PATCH v2 1/2] build: temporarily disable MSVC warnings
Tyler Retzlaff
roretzla at linux.microsoft.com
Tue Oct 17 15:49:22 CEST 2023
Temporarily disable integer truncation and conversion warnings for MSVC
to allow CI pipeline to be established.
Signed-off-by: Tyler Retzlaff <roretzla at linux.microsoft.com>
Acked-by: Bruce Richardson <bruce.richardson at intel.com>
---
config/meson.build | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/config/meson.build b/config/meson.build
index d56b0f9..0968351 100644
--- a/config/meson.build
+++ b/config/meson.build
@@ -36,6 +36,11 @@ if is_ms_compiler
# the MSVC compiler regards as unsafe but are used by DPDK
dpdk_conf.set('_CRT_SECURE_NO_WARNINGS', 1)
+ # temporarily disable msvc specific warnings
+ # - 4244 compiler detected conversion of integer to smaller type
+ # - 4267 compiler detected conversion of size_t to smaller type
+ add_project_arguments('/wd4244', '/wd4267', language: 'c')
+
# enable non-locking atomic operations
add_project_arguments('/experimental:c11atomics', language: 'c')
--
1.8.3.1
More information about the dev
mailing list