Project

General

Profile

Bug #2274 ยป 0068-Meson-Remove-duplicate-setting-of-Wshadow.patch

Marko Lindqvist, 09/22/2026 02:35 AM

View differences:

meson.build
if get_option('debug')
priv_conf_data.set('FREECIV_DEBUG', 1)
pub_conf_data.set('FREECIV_DEBUG', 1)
add_global_arguments('-Wshadow', language: ['c'])
if host_system == 'windows'
# Qt headers have problems with dllimport attributes
add_global_arguments('-Wno-error=attributes', language : 'cpp')
else
add_global_arguments('-Wshadow', language: ['cpp'])
endif
else
add_global_arguments('-DQT_NO_DEBUG', language : 'cpp')
    (1-1/1)