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

nanostack: icmpv6: fix build warning #9694

Merged
merged 1 commit into from
Feb 14, 2019

Conversation

naveenkaje
Copy link
Contributor

Description

Fix the following build warning seen when building with GCC

Compile [ 54.2%]: icmpv6.c
[Warning] icmpv6.c@1091,16: this statement may fall through [-Wimplicit-fallthrough=]

Pull request type

[x] Fix
[ ] Refactor
[ ] Target update
[ ] Functionality change
[ ] Docs update
[ ] Test update
[ ] Breaking change

@ciarmcom ciarmcom requested a review from a team February 13, 2019 00:00
@ciarmcom
Copy link
Member

@naveenkaje, thank you for your changes.
@ARMmbed/mbed-os-mesh @ARMmbed/mbed-os-maintainers please review.

@ciarmcom ciarmcom requested a review from a team February 13, 2019 00:00
@ciarmcom
Copy link
Member

@naveenkaje, thank you for your changes.
@ARMmbed/mbed-os-mesh @ARMmbed/mbed-os-maintainers please review.

@cmonr
Copy link
Contributor

cmonr commented Feb 13, 2019

CI started while waiting on Mesh Team.

Not too conmfortable simply ignoring a warning, but if only GCC is complainging, it can't be that bad?

@mbed-ci
Copy link

mbed-ci commented Feb 13, 2019

Test run: FAILED

Summary: 2 of 8 test jobs failed
Build number : 1
Build artifacts

Failed test jobs:

  • jenkins-ci/mbed-os-ci_build-ARMC6
  • jenkins-ci/mbed-os-ci_build-GCC_ARM

Copy link
Contributor

@0xc0170 0xc0170 left a comment

Choose a reason for hiding this comment

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

100644 → 100755

Fix file attributes.

attribute ((fallthrough));

Failing few builds, is this available in all our toolchains?

Fix the following build warning seen when building with GCC

Compile [ 54.2%]: icmpv6.c
[Warning] icmpv6.c@1091,16: this statement may fall through [-Wimplicit-fallthrough=]
@naveenkaje
Copy link
Contributor Author

naveenkaje commented Feb 13, 2019

100644 → 100755

Fix file attributes.

attribute ((fallthrough));

Failing few builds, is this available in all our toolchains?

I see

[Warning] icmpv6.c@1087,0:  #1207-D: unknown attribute "fallthrough"
[Warning] icmpv6.c@1096,0:  #1207-D: unknown attribute "fallthrough"

With ARMCC. Perhaps it is only for GCC.

https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html indicates that this is standardized now. I changed my patch and tested with ARMCC and GCC. I see no warnings locally. Lets see if this is ok for all supported toolchains in our CI.

@cmonr cmonr dismissed 0xc0170’s stale review February 13, 2019 20:41

Attribute updated.

@cmonr
Copy link
Contributor

cmonr commented Feb 13, 2019

CI started

@mbed-ci
Copy link

mbed-ci commented Feb 14, 2019

Test run: SUCCESS

Summary: 12 of 12 test jobs passed
Build number : 2
Build artifacts

@cmonr cmonr merged commit 9be82d9 into ARMmbed:master Feb 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants