Skip to content

Conversation

@lemondrops
Copy link
Contributor

Summary

Variable declarations, unlike statements, aren't allowed after labels (including case labels) according to the C standard, so insert a semicolon to make an empty statement that satisfies the requirement.

Oddly, MSYS2/MinGW-w64 GCC, unlike other compilers, including GCC on other systems, seemed to accept them without errors...

Checklist

  • Closes #xxx
  • I have discussed this with core contributors already
  • This pull request requires changes to the ROM set

References

N/A

Variable declarations, unlike statements, aren't allowed after
labels (including case labels) according to the C standard,
so insert a semicolon to make an empty statement that satisfies
the requirement.

Oddly, MSYS2/MinGW-w64 GCC, unlike other compilers, including GCC
on other systems, seemed to accept them without errors...
@OBattler OBattler merged commit 9b9cf31 into 86Box:master May 3, 2024
@lemondrops lemondrops deleted the compile-fix branch May 3, 2024 23:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants