[dpdk-dev] [PATCH] mk: fix warning spew when EXTRA_CFLAGS specifies warning flags

Thomas Monjalon thomas.monjalon at 6wind.com
Mon Dec 7 22:41:04 CET 2015


2015-12-07 14:49, Simon Kågström:
> On 2015-12-07 13:56, Panu Matilainen wrote:
> > Starting with commit 9aa2053c6e81493b23346ff4e387903560de5c81
> > EXTRA_CFLAGS is sometimes being passed to the compiler without
> > WERROR_FLAGS which can cause spurious warnings by the dozen,
> > for example with when compiling with EXTRA_CFLAGS="-Wformat-security":
> > 
> > cc1: warning: -Wformat-security ignored without -Wformat [-Wformat-security]
> > 
> > Passing WERROR_FLAGS to AUTO_CPU helper makes the warning flag usage
> > consistent throughout the codebase, silencing the warnings.
> 
> Acked-by: Simon Kagstrom <simon.kagstrom at netinsight.net>

Applied, thanks


More information about the dev mailing list