Skip to content

Commit

Permalink
#432 fix warnings in generated project code
Browse files Browse the repository at this point in the history
  • Loading branch information
SanderMertens committed Jan 19, 2016
1 parent 5d70cfa commit 1f5e8f1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/corto/test/src/Project.c
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ corto_int16 test_Project_implementNoCorto(

/* Add function and rebuild */
fprintf(f, "#include \"%s/%s.h\"\n", package, name);
fprintf(f, "void foo() {}\n\n");
fprintf(f, "void foo(void) {}\n\n");
fclose(f);

sprintf(cfile, "%s/include/%s.h", name, name);
Expand All @@ -101,7 +101,7 @@ corto_int16 test_Project_implementNoCorto(
}

/* Add function and rebuild */
fprintf(f, "\nvoid foo();\n\n");
fprintf(f, "\nvoid foo(void);\n\n");
fclose(f);

corto_pid pid = corto_procrun(
Expand Down Expand Up @@ -137,7 +137,7 @@ corto_int16 test_Project_use(corto_string package) {
}

/* Add function and rebuild */
fprintf(f, "\n\nvoid bar() {\n foo();\n}\n\n");
fprintf(f, "\n\nvoid bar(void) {\n foo();\n}\n\n");
fclose(f);

corto_pid pid = corto_procrun(
Expand Down Expand Up @@ -178,7 +178,7 @@ corto_int16 test_Project_useNoCorto(

/* Add function and rebuild */
fprintf(f, "#include \"%s/%s.h\"\n", include, includeName);
fprintf(f, "\n\nvoid bar() {\n foo();\n}\n\n");
fprintf(f, "\n\nvoid bar(void) {\n foo();\n}\n\n");
fclose(f);

corto_pid pid = corto_procrun(
Expand Down

0 comments on commit 1f5e8f1

Please sign in to comment.