From 35e76431e5bdf24b67dc0b9a3f78367adb36b15c Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 13 Nov 2024 11:39:14 -0500 Subject: Fix build as C with MSVC It used to be necessary to build modern C code as C++ with MSVC, but its C support has become more or less serviceable, so remove the flag to force C++ mode and build as C everywhere. --- meson/suppressions/meson.build | 4 ---- 1 file changed, 4 deletions(-) (limited to 'meson') diff --git a/meson/suppressions/meson.build b/meson/suppressions/meson.build index cacc4f7..dda5b84 100644 --- a/meson/suppressions/meson.build +++ b/meson/suppressions/meson.build @@ -96,15 +96,11 @@ elif cc.get_id() == 'msvc' if warning_level == 'everything' c_suppressions += [ '/wd4061', # enumerator in switch is not explicitly handled - '/wd4200', # zero-sized array in struct/union '/wd4514', # unreferenced inline function has been removed '/wd4710', # function not inlined '/wd4711', # function selected for automatic inline expansion - '/wd4800', # implicit conversion from int to bool '/wd4820', # padding added after construct - '/wd4996', # POSIX name for this item is deprecated '/wd5045', # will insert Spectre mitigation for memory load - '/wd5264', # const variable is not used ] endif -- cgit v1.2.1