Skip to content

gcc-10 warnings fixes#575

Merged
fklassen merged 4 commits intoappneta:4.3.3from
GabrielGanne:gcc-10-warnings-fix
May 20, 2020
Merged

gcc-10 warnings fixes#575
fklassen merged 4 commits intoappneta:4.3.3from
GabrielGanne:gcc-10-warnings-fix

Conversation

@GabrielGanne
Copy link
Copy Markdown
Contributor

Hi,

In my setup, this leaves two warning:

A cast-function-type warnings caused by libpcap
In my opinion, the code calling libpcap is valid, and the warning can safely be ignored.

Another saying that the <sys/sysctl.h> header is deprecated and will be removed.
I'll just leave the warning for later.

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
tcpedit_tcpedit_optDesc_p is defined within the *.def files, the
variable itself is defined in the generated C files.
@fklassen fklassen self-assigned this Apr 24, 2020
@fklassen fklassen added the bug label Apr 24, 2020
@fklassen
Copy link
Copy Markdown
Member

Thanks for the PR @GabrielGanne. I will include it in the next fix release, coming shortly.

@fklassen
Copy link
Copy Markdown
Member

A cast-function-type warnings caused by libpcap
In my opinion, the code calling libpcap is valid, and the warning can safely be ignored.

I got a tip from Debian guys to try -fcommon flag to get rid of issues, but it undesirable to do so. I have been attempting to spin up a gcc-10 sandbox to attempt to recreate.

As usual, thanks for the help.

@fklassen fklassen changed the base branch from master to 4.3.3 May 20, 2020 16:04
@fklassen fklassen linked an issue May 20, 2020 that may be closed by this pull request
@fklassen fklassen merged commit 4bf5019 into appneta:4.3.3 May 20, 2020
@GabrielGanne GabrielGanne deleted the gcc-10-warnings-fix branch October 14, 2024 11:50
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.

[Bug] gcc 10 compile issues

2 participants