Skip to content

examples/gnrc_tftp: fix implicit fallthrough error#8382

Merged
kaspar030 merged 1 commit intoRIOT-OS:masterfrom
smlng:examples/gnrc_tftp_fix72
Jan 22, 2018
Merged

examples/gnrc_tftp: fix implicit fallthrough error#8382
kaspar030 merged 1 commit intoRIOT-OS:masterfrom
smlng:examples/gnrc_tftp_fix72

Conversation

@smlng
Copy link
Copy Markdown
Member

@smlng smlng commented Jan 18, 2018

Contribution description

fixes comment for intentional fall through to prevent compile error with GCC 7.x.
Also fixes return code in case of error.

Issues/PRs references

#8265

@smlng smlng added Type: enhancement The issue suggests enhanceable parts / The PR enhances parts of the codebase / documentation CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR labels Jan 18, 2018
@smlng smlng requested a review from jnohlgard January 18, 2018 15:32
Copy link
Copy Markdown
Member

@jnohlgard jnohlgard left a comment

Choose a reason for hiding this comment

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

ACK.
Does the end of the default case need a comment as well (or break) or is that not covered by the gcc warnings?

@smlng smlng force-pushed the examples/gnrc_tftp_fix72 branch from a9c3cd0 to 8f659ef Compare January 18, 2018 15:41
@smlng
Copy link
Copy Markdown
Member Author

smlng commented Jan 18, 2018

Does the end of the default case need a comment as well (or break)

it actually does not, but its advised (good practice) to add a break nevertheless, to avoid ugly bugs if someone adds a case after default in the future. Hence, I added a break.

@smlng smlng added the Process: needs backport Integration Process: The PR is required to be backported to a release or feature branch label Jan 22, 2018
@kaspar030 kaspar030 changed the title examples/gnrc_tffp: fix implicit fallthrough error examples/gnrc_tftp: fix implicit fallthrough error Jan 22, 2018
@kaspar030 kaspar030 merged commit 3bbeafb into RIOT-OS:master Jan 22, 2018
@miri64
Copy link
Copy Markdown
Member

miri64 commented Jan 23, 2018

Needs backport.

@miri64 miri64 removed the Process: needs backport Integration Process: The PR is required to be backported to a release or feature branch label Jan 26, 2018
@smlng smlng deleted the examples/gnrc_tftp_fix72 branch February 6, 2018 19:42
@jnohlgard jnohlgard mentioned this pull request Feb 19, 2018
13 tasks
miri64 added a commit to miri64/RIOT that referenced this pull request Jun 28, 2018
Without this fix the listener doesn't actually listen on the
(potentially) ephemeral port introduced in RIOT-OS#8382, but on port 0 which is
wrong.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR Type: enhancement The issue suggests enhanceable parts / The PR enhances parts of the codebase / documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants