mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
ci: fix clang -std=c99 -D_DEFAULT_SOURCE -o v vc/v.c
warnings
This commit is contained in:
parent
eef7eea7bc
commit
6843b85063
@ -188,7 +188,7 @@ fn (mut v Builder) setup_ccompiler_options(ccompiler string) {
|
|||||||
// arguments for the C compiler
|
// arguments for the C compiler
|
||||||
ccoptions.args = [v.pref.cflags]
|
ccoptions.args = [v.pref.cflags]
|
||||||
if !v.pref.no_std {
|
if !v.pref.no_std {
|
||||||
ccoptions.args << '-std=c99'
|
ccoptions.args << '-std=c99 -D_DEFAULT_SOURCE'
|
||||||
}
|
}
|
||||||
ccoptions.wargs = [
|
ccoptions.wargs = [
|
||||||
'-Wall',
|
'-Wall',
|
||||||
|
@ -519,6 +519,8 @@ pub fn find_all_v_files(roots []string) ?[]string {
|
|||||||
// if you add another cached unsafe function using static, do not forget to add
|
// if you add another cached unsafe function using static, do not forget to add
|
||||||
// a mechanism to clear its cache, and call it here.
|
// a mechanism to clear its cache, and call it here.
|
||||||
pub fn free_caches() {
|
pub fn free_caches() {
|
||||||
unsafe { cached_read_source_file('') or {} }
|
unsafe {
|
||||||
unsafe { cached_file2sourcelines('') }
|
cached_file2sourcelines('')
|
||||||
|
cached_read_source_file('') or { '' }
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user