Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Syntax errors #2775

Open
minjaep opened this issue Jan 18, 2025 · 0 comments
Open

Syntax errors #2775

minjaep opened this issue Jan 18, 2025 · 0 comments

Comments

@minjaep
Copy link

minjaep commented Jan 18, 2025

I sometimes encountered with a compile error "a label can only be part of a statement and a declaration is not a statement".

For example,

app/src/behaviors/behavior_key_toggle.c:43:
case FLIP:
bool pressed = zmk_hid_is_pressed(binding->param1);

app/src/usb_hid.c:68
case ZMK_HID_REPORT_ID_MOUSE:
static struct zmk_hid_mouse_resolution_feature_report res_feature_report;

and in both cases, I could compile if I add an empty statement (i.e., adding an ";") after the case labels.

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

No branches or pull requests

1 participant