Return zero in cross_sizeof
There is an error when compiling with -Werror=return-type. Non void functions must return valid values.
This commit is contained in:
parent
e3140fa2d2
commit
968aee4f18
|
@ -550,6 +550,7 @@ class CLikeCompiler:
|
|||
{prefix}
|
||||
int main(int argc, char **argv) {{
|
||||
{type} something;
|
||||
return 0;
|
||||
}}'''
|
||||
if not self.compiles(t.format(**fargs), env, extra_args=extra_args,
|
||||
dependencies=dependencies)[0]:
|
||||
|
|
Loading…
Reference in New Issue