Open lain-core opened 1 month ago
If I'm not mistaken, this error only occurs when not compiling with "make modern". Other errors may come up during compiling if "make modern" is not used, which is what I've been using since I started developing this hackrom.
Resolves #37
Description
When compiling
master
with arm-none-eabi-gcc version10.3.1 20210621 (release)
via WSL2 Ubuntu an error is raised:This is caused by the case statement
default:
immediately being followed by a declaration of aconst s8 *
, and is thus resolvable by simply placing a blank statement prior to evaluating the default switch case.References: https://stackoverflow.com/questions/18496282/why-do-i-get-a-label-can-only-be-part-of-a-statement-and-a-declaration-is-not-a https://www.educative.io/answers/resolving-the-a-label-can-only-be-part-of-a-statement-error https://gcc.gnu.org/bugzilla/show_bug.cgi?id=37231
Discord contact info
hking0036