samples; Fixed missing return in non-void functions

This commit is contained in:
Daniel Marjamäki 2021-07-04 16:59:09 +02:00
parent 036c71d967
commit 06f2f75548
8 changed files with 8 additions and 0 deletions

View File

@ -8,4 +8,5 @@ int main()
{
int i[10];
foo(i);
return 0;
}

View File

@ -7,4 +7,5 @@ int main()
{
int i[10];
foo(i);
return 0;
}

View File

@ -8,4 +8,5 @@ int main()
{
int *c;
foo(&c);
return 0;
}

View File

@ -9,4 +9,5 @@ int main()
int b;
int *c = &b;
foo(&c);
return 0;
}

View File

@ -3,4 +3,5 @@ int main()
{
char str[5];
strcpy(str, "0123456789abcdef");
return 0;
}

View File

@ -3,4 +3,5 @@ int main()
{
char str[10];
snprintf(str, 10, "%s", "abc");
return 0;
}

View File

@ -1,5 +1,6 @@
int main()
{
return 0;
#ifdef A
}
#endif

View File

@ -2,4 +2,5 @@ int main()
{
#ifndef A
#endif
return 0;
}