ci: fix `./v -cc gcc -cflags "-Werror" vlib/io/os_file_reader_test.v`
parent
fb09333a73
commit
995e1c84a2
|
@ -5036,10 +5036,13 @@ fn (mut g Gen) struct_init(struct_init ast.StructInit) {
|
||||||
if is_multiline {
|
if is_multiline {
|
||||||
g.indent--
|
g.indent--
|
||||||
}
|
}
|
||||||
// if struct_init.fields.len == 0 && info.fields.len == 0 {
|
|
||||||
if !initialized {
|
if g.pref.ccompiler == 'msvc' {
|
||||||
g.write('\n#ifndef __cplusplus\n0\n#endif\n')
|
if !initialized {
|
||||||
|
g.write('\n#ifndef __cplusplus\n0\n#endif\n')
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
g.write('}')
|
g.write('}')
|
||||||
if g.is_shared && !g.inside_opt_data && !g.is_array_set {
|
if g.is_shared && !g.inside_opt_data && !g.is_array_set {
|
||||||
g.write('}, sizeof($shared_styp))')
|
g.write('}, sizeof($shared_styp))')
|
||||||
|
|
Loading…
Reference in New Issue