[klibc] [PATCH] klibc: introduce EXTRA_KLIBCWARNFLAGS variable

maximilian attems max at stro.at
Thu Jun 28 08:30:42 PDT 2012


On Wed, 27 Jun 2012, Maciej Żenczykowski wrote:

> From: Maciej Żenczykowski <maze at google.com>
> 
> Introduce new EXTRA_KLIBCWARNFLAGS variable which is appended to
> the compiler warning flags.
> 
> This can be used to enable compiler warning promotion with:
>   make EXTRA_KLIBCWARNFLAGS=-Werror
> (and/or to disable individual warnings)
> 
> Signed-off-by: Maciej Żenczykowski <maze at google.com>
> ---
>  scripts/Kbuild.klibc |    3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)

Looks good to me, waiting on Sam to eyeball and ack/nack it?
 
> diff --git a/scripts/Kbuild.klibc b/scripts/Kbuild.klibc
> index f500d5358ef6..e913c5c9a4a9 100644
> --- a/scripts/Kbuild.klibc
> +++ b/scripts/Kbuild.klibc
> @@ -70,7 +70,8 @@ KLIBCREQFLAGS     := $(call cc-option, -fno-stack-protector, ) \
>                       $(call cc-option, -fwrapv, )
>  KLIBCARCHREQFLAGS :=
>  KLIBCOPTFLAGS     :=
> -KLIBCWARNFLAGS    := -W -Wall -Wno-sign-compare -Wno-unused-parameter
> +KLIBCWARNFLAGS    := -W -Wall -Wno-sign-compare -Wno-unused-parameter \
> +        $(EXTRA_KLIBCWARNFLAGS)
>  KLIBCSHAREDFLAGS  :=
>  KLIBCBITSIZE      :=
>  KLIBCLDFLAGS      :=
> -- 
> 1.7.9.4
> 
> _______________________________________________
> klibc mailing list
> klibc at zytor.com
> http://www.zytor.com/mailman/listinfo/klibc
-- 
maks


More information about the klibc mailing list