Skip to content

fix(cortex-m): add missing return in set_pending/clear_pending for m0…#979

Open
by965738071 wants to merge 1 commit into
ZigEmbeddedGroup:mainfrom
by965738071:fix/cortex-m0plus-set-pending
Open

fix(cortex-m): add missing return in set_pending/clear_pending for m0…#979
by965738071 wants to merge 1 commit into
ZigEmbeddedGroup:mainfrom
by965738071:fix/cortex-m0plus-set-pending

Conversation

@by965738071

Copy link
Copy Markdown
Contributor

fix(cortex-m): add missing return in set_pending/clear_pending for m0…

@Grazfather

Copy link
Copy Markdown
Collaborator

Why return? Can't we just put the @compileError in an else case? That way we follow the semantics of all the switch cases.

@mattnite mattnite left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, @Grazfather is right, please put it in an else

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.

3 participants