Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[RV64_DYNAREC] Fix compilation error in _helper.c
Fix compilation error in RV64 dynarec helper function Encountered a compilation failure with gcc 10.2.0 for RISC-V when trying to declare a variable within a switch case without enclosing it in braces. This change fixes the issue by adding curly braces around the code block inside the case statement, which is necessary for older versions of GCC that require a declaration to be part of a block. This resolves the error: "error: a label can only be part of a statement and a declaration is not a statement" Now, variable declarations inside switch cases are enclosed in braces to ensure compatibility with older compilers and maintain consistent coding style.
- Loading branch information