Fixed + disabled some warnings
Run tests / Run tests (push) Successful in 11s

This commit is contained in:
2026-05-04 22:53:56 +03:00
parent 2c74b727ef
commit 7b8bac2b55
4 changed files with 44 additions and 29 deletions
+19 -1
View File
@@ -1,8 +1,22 @@
project('evol-headers', 'c',
default_options : [ 'c_std=c23' ])
default_options : [
'c_std=c23',
# 'warning_level=everything',
# 'werror=true'
]
)
headers_include = include_directories('.')
disabled_warnings = {
'clang': [
'unused-macros',
'reserved-macro-identifier',
'pre-c11-compat',
'pre-c23-compat',
]
}
evh_c_args = []
buildtype = get_option('buildtype')
if buildtype == 'debug'
@@ -20,6 +34,10 @@ elif cc.get_id() == 'clang'
evh_c_args += '-DEV_CC_CLANG=1'
endif
foreach w:disabled_warnings[cc.get_id()]
evh_c_args += '-Wno-'+w
endforeach
# All other targets should follow the same template
str_lib = static_library('ev_str', files('buildfiles/ev_str.c'), c_args: evh_c_args)
vec_lib = static_library('ev_vec', files('buildfiles/ev_vec.c'), c_args: evh_c_args)