don't enable fatal-warnings in debug builds

too annoying to have it on all the time
This commit is contained in:
John Cupitt 2022-06-19 13:00:04 +01:00
parent 01d5fbd6a4
commit dfeb270fe0
1 changed files with 1 additions and 2 deletions

View File

@ -44,10 +44,9 @@ if get_option('optimization') in ['2', '3', 's']
add_project_arguments('-DG_DISABLE_ASSERT', language : ['cpp', 'c'])
endif
# in debug mode we automatically enable leak checks and fatal warnings
# in debug mode we automatically enable leak checks
# also true for 'debugoptimized'
if get_option('debug')
add_project_arguments('-DDEBUG_FATAL', language : ['cpp', 'c'])
add_project_arguments('-DDEBUG_LEAK', language : ['cpp', 'c'])
endif