Skip to content

Refactor case-statement to if-statement to avoid implicit fallthrough.#310

Merged
harshavardhana merged 1 commit intoabperiasamy:masterfrom
bnpfeife:bnp/development
Oct 2, 2019
Merged

Refactor case-statement to if-statement to avoid implicit fallthrough.#310
harshavardhana merged 1 commit intoabperiasamy:masterfrom
bnpfeife:bnp/development

Conversation

@bnpfeife
Copy link
Copy Markdown
Contributor

@bnpfeife bnpfeife commented Oct 1, 2019

When attempting to compile master gcc complains:

In function ‘mgt_dispatcher’:
core/rtw_mlme_ext.c:756:5: error: this statement may fall through [-Werror=implicit-fallthrough=]

Refactoring the case-statement to an if-statement allows it to compile without any errors.

@bnpfeife bnpfeife changed the title Refactor case-statement to if-statement to avoid implicit fallback. Refactor case-statement to if-statement to avoid implicit fallthrough. Oct 1, 2019
@harshavardhana harshavardhana merged commit fa68771 into abperiasamy:master Oct 2, 2019
arkhometha added a commit to arkhometha/rtl8812AU_AP that referenced this pull request Oct 16, 2019
greearb added a commit to greearb/rtl8812AU_8821AU_linux that referenced this pull request Nov 21, 2019
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.

2 participants