Fix GCC return-type on exhaustive enum switches #4

Merged
fragmented merged 1 commit from initial-development into mainline 2026-05-20 06:53:40 +00:00
Owner

CI on the Ubuntu runner (GCC 13) failed configuring
guitar_prometheus_core because the three switch-returns in
ArticulationCoding.cpp don't have a fallthrough. Apple Clang
trusts exhaustive enum-class switches and stays silent;
GCC's -Werror=return-type doesn't and rejects the unit.

Add a trailing return {} after each switch. The
-Wswitch-enum guard still fires if a new Articulation
enumerator is added without a matching case, so the
exhaustiveness check is preserved.

CI on the Ubuntu runner (GCC 13) failed configuring guitar_prometheus_core because the three switch-returns in ArticulationCoding.cpp don't have a fallthrough. Apple Clang trusts exhaustive enum-class switches and stays silent; GCC's -Werror=return-type doesn't and rejects the unit. Add a trailing `return {}` after each switch. The -Wswitch-enum guard still fires if a new Articulation enumerator is added without a matching case, so the exhaustiveness check is preserved.
Fix GCC return-type on exhaustive enum switches
Some checks failed
Publish Documentation / publish (push) Failing after 2m28s
3a09dfaf6e
CI on the Ubuntu runner (GCC 13) failed configuring
guitar_prometheus_core because the three switch-returns in
ArticulationCoding.cpp don't have a fallthrough. Apple Clang
trusts exhaustive enum-class switches and stays silent;
GCC's -Werror=return-type doesn't and rejects the unit.

Add a trailing `return {}` after each switch. The
-Wswitch-enum guard still fires if a new Articulation
enumerator is added without a matching case, so the
exhaustiveness check is preserved.
fragmented merged commit 3a09dfaf6e into mainline 2026-05-20 06:53:40 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
tools/guitar-prometheus!4
No description provided.