mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 10:12:06 +00:00
No more flexible array members (not standard C++) (#1307)
* Replace FAMs with `std::vector`s (or one `std::string`) in four `struct`s * Anonymous types declared in an anonymous union are also non-standard Only Clang complains about this (-Wnested-anon-types)
This commit is contained in:
@@ -416,7 +416,7 @@ void sdobj_ReadFile(struct FileStackNode const *where, FILE *file) {
|
||||
// definition is in a floating section
|
||||
if ((other->section && !other->section->isAddressFixed)
|
||||
|| (symbol->section && !symbol->section->isAddressFixed)) {
|
||||
sym_AddSymbol(symbol); // This will error out
|
||||
sym_AddSymbol(symbol); // This will error out
|
||||
} else if (other->value != symbol->value) {
|
||||
error(where, lineNo,
|
||||
"Definition of \"%s\" conflicts with definition in %s (%" PRId32 " != %" PRId32 ")",
|
||||
|
||||
Reference in New Issue
Block a user