Ubuntu 20.04 EOL
Stephen Hemminger
stephen at networkplumber.org
Thu Aug 28 16:49:10 CEST 2025
On Thu, 28 Aug 2025 08:50:23 +0200
Morten Brørup <mb at smartsharesystems.com> wrote:
> >
> > Asking because the recent patch to handle shadow warnings doesn't work on
> > compilers like Gcc 9.4 which don't know what -Wshadow is.
>
> Our current minimum GCC compiler requirement is version 8.0:
> https://git.dpdk.org/dpdk/tree/doc/guides/linux_gsg/sys_reqs.rst#n32
>
> Which GCC version is required to support -Wshadow, and which GCC versions are included in relevant distros?
>
> Maybe the -Wshadow can be added conditionally, depending on compiler version.
> Shadow variables will not be caught locally, if using an old compiler version. But the CI will catch them in the tests running on recent compiler versions.
>
Meson handles that part fine. It is the Pragma logic that seems to confuse.
Working on doing it without pragma
More information about the dev
mailing list