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

Warnings #555

Merged
merged 3 commits into from
Jun 3, 2020
Merged

Warnings #555

merged 3 commits into from
Jun 3, 2020

Conversation

GabrielGanne
Copy link
Contributor

Hi,

This is to silence some warnings that appeared when I migrated from debian 9 -> 10 which comes with gcc 8.3 (over 6.3).
It addresses implicit fallthrough and unused function parameter warnings.

This does not cover them all: there are for example still warnings in makeshell.c's text_to_var() function, because gcc does not understand the NOTREACHED comments (which I find quite explicit). I did not find it a good idea to change those.

Best regards,

Those are mostly parameters being only used with netmap
rename somme comments from "no break" to "fallthrough" in order
to silence gcc where needed
@fklassen
Copy link
Member

fklassen commented May 2, 2019

@GabrielGanne thanks for the PR. I will merge as part of next point release.

BTW, if you are interested in becoming a maintainer and contributing directly to the repo, please contact me at tcpreplay at appneta dot com

@fklassen fklassen self-assigned this Jun 3, 2020
@fklassen fklassen changed the base branch from master to Bug_#555_gcc_10_warnings June 3, 2020 19:31
@fklassen fklassen changed the base branch from Bug_#555_gcc_10_warnings to 4.3.3 June 3, 2020 19:35
@fklassen fklassen merged commit bf7d48f into appneta:4.3.3 Jun 3, 2020
@GabrielGanne GabrielGanne deleted the warnings branch October 14, 2024 11:50
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.

2 participants