mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 18:22:07 +00:00
Use standard attribute syntax instead of IBM __attribute__
Move format attrs to proper standard location For some reason, GCC 13 is more lax than earlier versions...
This commit is contained in:
@@ -50,11 +50,11 @@ retry:
|
||||
do {
|
||||
firstChar = getc(file);
|
||||
} while (firstChar != EOF && firstChar != '\r' && firstChar != '\n');
|
||||
// fallthrough
|
||||
[[fallthrough]];
|
||||
case '\r':
|
||||
if (firstChar == '\r' && getc(file) != '\n')
|
||||
consumeLF(where, lineNo, file);
|
||||
// fallthrough
|
||||
[[fallthrough]];
|
||||
case '\n':
|
||||
goto retry;
|
||||
}
|
||||
@@ -65,7 +65,7 @@ retry:
|
||||
switch (c) {
|
||||
case '\r':
|
||||
consumeLF(where, lineNo, file);
|
||||
// fallthrough
|
||||
[[fallthrough]];
|
||||
case '\n':
|
||||
case EOF:
|
||||
lineBuf.push_back('\0'); // Terminate the string (space was ensured above)
|
||||
|
||||
Reference in New Issue
Block a user