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:
Abhishek Pandit-Subedi 2019-07-02 16:13:55 -07:00 committed by Jussi Pakkanen
parent e3140fa2d2
commit 968aee4f18
1 changed files with 1 additions and 0 deletions

View File

@ -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]: