Skip to content
Snippets Groups Projects
Commit 7f449dae authored by FlorianKrull's avatar FlorianKrull
Browse files

Fixed warnings

parent 49dd10de
No related branches found
No related tags found
No related merge requests found
...@@ -108,7 +108,7 @@ int main(int argc, char *argv[]) { ...@@ -108,7 +108,7 @@ int main(int argc, char *argv[]) {
return EXIT_FAILURE; return EXIT_FAILURE;
} }
mcc_symbol_table_print(symbol_table,out,0); mcc_symbol_table_print(symbol_table,out);
mcc_symbol_table_delete_table(symbol_table); mcc_symbol_table_delete_table(symbol_table);
mcc_symbol_table_delete_error_collector(ec); mcc_symbol_table_delete_error_collector(ec);
mcc_ast_delete(prog); mcc_ast_delete(prog);
......
...@@ -108,7 +108,7 @@ int main(int argc, char *argv[]) { ...@@ -108,7 +108,7 @@ int main(int argc, char *argv[]) {
return EXIT_FAILURE; return EXIT_FAILURE;
} }
mcc_symbol_table_print(symbol_table,out,0); mcc_symbol_table_print(symbol_table,out);
mcc_symbol_table_delete_table(symbol_table); mcc_symbol_table_delete_table(symbol_table);
mcc_symbol_table_delete_error_collector(ec); mcc_symbol_table_delete_error_collector(ec);
mcc_ast_delete(prog); mcc_ast_delete(prog);
......
...@@ -76,7 +76,7 @@ void mcc_symbol_table_print(struct mcc_symbol_table *symbol_table, FILE *out){ ...@@ -76,7 +76,7 @@ void mcc_symbol_table_print(struct mcc_symbol_table *symbol_table, FILE *out){
fprintf(out,"\n"); fprintf(out,"\n");
} }
for (int i = 0; i < symbol_table->inner_tables->size; i++) { for (int i = 0; i < symbol_table->inner_tables->size; i++) {
mcc_symbol_table_print(symbol_table->inner_tables->arr[i],out,i); mcc_symbol_table_print(symbol_table->inner_tables->arr[i],out);
} }
} }
......
...@@ -39,7 +39,7 @@ void clean_pointers( ...@@ -39,7 +39,7 @@ void clean_pointers(
struct mcc_ast_program *p, struct mcc_ast_program *p,
struct mcc_symbol_table_error_collector *ec) { struct mcc_symbol_table_error_collector *ec) {
mcc_symbol_table_delete_error_collector(ec); mcc_symbol_table_delete_error_collector(ec);
// mcc_ast_delete_program(p); mcc_ast_delete_program(p);
} }
...@@ -406,11 +406,11 @@ void InvalidReturnType(CuTest *ct) { ...@@ -406,11 +406,11 @@ void InvalidReturnType(CuTest *ct) {
TEST(BinaryOpHandsideNumberType) \ TEST(BinaryOpHandsideNumberType) \
TEST(BinaryOpHandsideDivisionByZero) \ TEST(BinaryOpHandsideDivisionByZero) \
TEST(ConditionBoolExpected) \ TEST(ConditionBoolExpected) \
// The following tests are currently not working due to unknown reasons /*The following tests are currently not working due to unknown reasons
// TEST(WrongArgumentType) \ // TEST(WrongArgumentType) \
// TEST(NoReturnInNonVoidFunction) \ // TEST(NoReturnInNonVoidFunction) \
// TEST(InvalidReturnType) \ // TEST(InvalidReturnType) \
// TEST(WrongNumOfArguments) \ // TEST(WrongNumOfArguments) \ */
#include "main_stub.inc" #include "main_stub.inc"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment