[PATCH] drivers: disable comma warnings selectively

Stephen Hemminger stephen at networkplumber.org
Fri Feb 13 18:25:17 CET 2026


On Fri, 13 Feb 2026 15:14:00 +0000
Bruce Richardson <bruce.richardson at intel.com> wrote:

> Rather than disabling -Wcomma for all drivers, only disable it on a
> case-by-case basis for drivers that need it disabled. Use a variable to
> do so, to avoid issues with compilers like MSVC that don't support the
> -Wno-comma flag.
> 
> Signed-off-by: Bruce Richardson <bruce.richardson at intel.com>

Some of those drivers should be easy to fix?

This change would be helped by fixing and introducing FOREACH_SAFE macros.
I started that but it never got anywhere


More information about the dev mailing list