@@ -73,9 +73,10 @@ libregress = library('regress', regress_sources,
7373regress_gir = gnome.generate_gir(libregress, includes : regress_gir_includes,
7474 sources : regress_sources, namespace : ' Regress' , nsversion : ' 1.0' ,
7575 identifier_prefix : ' Regress' , symbol_prefix : ' regress_' ,
76- extra_args : [' --warn-all' , ' --warn-error ' ] + regress_gir_c_args,
76+ extra_args : [' --warn-all' ] + regress_gir_c_args,
7777 install : get_option (' installed_tests' ), install_dir_gir : false ,
78- install_dir_typelib : installed_tests_execdir)
78+ install_dir_typelib : installed_tests_execdir,
79+ fatal_warnings : get_option (' werror' ))
7980regress_typelib = regress_gir[1 ]
8081
8182if not skip_warnlib
@@ -104,7 +105,7 @@ libgimarshallingtests = library('gimarshallingtests',
104105gimarshallingtests_gir = gnome.generate_gir(libgimarshallingtests,
105106 includes : [' Gio-2.0' ], sources : gimarshallingtests_sources,
106107 namespace : ' GIMarshallingTests' , nsversion : ' 1.0' ,
107- symbol_prefix : ' gi_marshalling_tests_' , extra_args : ' --warn-error ' ,
108+ symbol_prefix : ' gi_marshalling_tests_' , fatal_warnings : get_option ( ' werror ' ) ,
108109 install : get_option (' installed_tests' ), install_dir_gir : false ,
109110 install_dir_typelib : installed_tests_execdir)
110111gimarshallingtests_typelib = gimarshallingtests_gir[1 ]
0 commit comments