mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Added warnings (should be ok up to GCC 8)
This commit is contained in:
@@ -149,6 +149,9 @@ target_compile_options(c3c PRIVATE -Wno-unknown-warning-option
|
||||
-Wignored-qualifiers -Wimplicit-fallthrough=3 -Wmisleading-indentation
|
||||
-Wold-style-declaration -Woverride-init
|
||||
-Wtype-limits -Wshift-negative-value
|
||||
-Wnested-externs -Wvla
|
||||
-Wpointer-arith -Wpacked -Wredundant-decls
|
||||
-Walloc-zero -Wduplicated-cond -Wshadow
|
||||
-Wmissing-field-initializers -Wmissing-parameter-type
|
||||
-Wno-unused-result -Wno-maybe-uninitialized
|
||||
-Wno-unknown-pragmas -Wno-unused-function -Wno-unused-variable -Wno-unused-parameter)
|
||||
|
||||
@@ -2018,13 +2018,13 @@ TomlTable *toml_walk_table_path(TomlParser *parser, TomlTable *table,
|
||||
goto error;
|
||||
}
|
||||
|
||||
TomlValue *new_table = toml_value_new_table(&err);
|
||||
TomlValue *temp_table = toml_value_new_table(&err);
|
||||
if (err.code != TOML_OK) goto error;
|
||||
|
||||
toml_array_append(t->value.array, new_table, &err);
|
||||
toml_array_append(t->value.array, temp_table, &err);
|
||||
if (err.code != TOML_OK) goto error;
|
||||
|
||||
real_table = new_table->value.table;
|
||||
real_table = temp_table->value.table;
|
||||
}
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user