imgui: Silence build warnings for imgui

Avoid treating any warnings as errors in the third-party imgui code, and
use Wno-error=stringop-overflow for code in Mesa.

Suggested-by: @eric

Signed-off-by: Valentine Burley <valentine.burley@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35853>
This commit is contained in:
Valentine Burley 2025-08-14 13:18:40 +02:00 committed by Marge Bot
parent dd1bc6c9a8
commit 92623d2447
3 changed files with 4 additions and 4 deletions

View file

@ -1,7 +1,7 @@
libimgui_core = static_library(
'imgui_core',
files('imgui.cpp', 'imgui_draw.cpp', 'imgui_widgets.cpp'),
cpp_args : ['-w'],
cpp_args : cpp.get_supported_arguments('-w', '-Wno-error'),
install : false
)

View file

@ -200,7 +200,7 @@ if with_tools.contains('intel-ui')
include_directories : [inc_include, inc_src, inc_intel],
c_args : [no_override_init_args],
gnu_symbol_visibility : 'hidden',
cpp_args : ['-fpermissive', '-Wno-parentheses'],
cpp_args : cpp.get_supported_arguments('-fpermissive', '-Wno-parentheses', '-Wno-error=stringop-overflow'),
install : true
)
@ -221,7 +221,7 @@ if with_tools.contains('intel-ui')
include_directories : [inc_include, inc_src, inc_intel],
c_args : [no_override_init_args],
gnu_symbol_visibility : 'hidden',
cpp_args : ['-fpermissive', '-Wno-parentheses'],
cpp_args : cpp.get_supported_arguments('-fpermissive', '-Wno-parentheses', '-Wno-error=stringop-overflow'),
install : true
)
endif

View file

@ -28,7 +28,7 @@ vklayer_files = files(
vklayer_mesa_overlay = shared_library(
'VkLayer_MESA_overlay',
vklayer_files, overlay_spv, sha1_h,
c_args : [no_override_init_args],
c_args : no_override_init_args + cc.get_supported_arguments('-Wno-error=stringop-overflow'),
gnu_symbol_visibility : 'hidden',
dependencies : [idep_vulkan_util, idep_mesautil, vulkan_wsi_deps, libimgui_core_dep, dep_dl],
include_directories : [inc_include, inc_src],