On Thu, 28 Aug 2025 08:50:23 +0200
Morten Brørup <m...@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

Reply via email to