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

Fix "same actions in two cases of a switch statement" warning #3208

Merged
merged 1 commit into from
Apr 21, 2020

Conversation

irwir
Copy link
Contributor

@irwir irwir commented Apr 20, 2020

Description

Remove duplication and use multiple case labels for the action.
Resolves #3202

Status

READY

Requires Backporting

NO
Which branch?
development

Migrations

NO

Resolves Mbed-TLS#3202

Signed-off-by: irwir <irwir@users.noreply.github.com>
@danh-arm
Copy link
Contributor

In the commit message, it would be helpful if you stated what compiler and version you get this warning with.

Copy link
Contributor

@danh-arm danh-arm left a comment

Choose a reason for hiding this comment

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

LGTM

@danh-arm danh-arm added needs-review Every commit must be reviewed by at least two team members, good-first-issue Good for newcomers labels Apr 21, 2020
@danh-arm danh-arm self-assigned this Apr 21, 2020
@irwir
Copy link
Contributor Author

irwir commented Apr 21, 2020

it would be helpful if you stated what compiler and version you get this warning with.

Warnings of this particular kind mostly come from static analysis.

@gilles-peskine-arm gilles-peskine-arm removed the needs-review Every commit must be reviewed by at least two team members, label Apr 21, 2020
@gilles-peskine-arm
Copy link
Contributor

There was a glitch on the CI, but only in the result analysis phase which doesn't impact the testing of the new code. Mbed OS CI is currently not operational. So the CI can be considered to have passed.

@gilles-peskine-arm gilles-peskine-arm merged commit 5cac337 into Mbed-TLS:development Apr 21, 2020
gilles-peskine-arm added a commit to gilles-peskine-arm/mbedtls that referenced this pull request Apr 21, 2020
Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
@irwir irwir deleted the fix_md.c branch October 6, 2023 14:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

md.c: same actions in switch statements
3 participants