Re: annoying new gcc 4.6.0 warnings.

Linus Torvalds
2011-04-21T20:09:37Z

On Thu, Apr 21, 2011 at 12:58 PM, Dave Jones <davej@redhat.com> wrote:
> @@ -359,7 +359,8 @@ KBUILD_CFLAGS   := -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs \
>                   -fno-strict-aliasing -fno-common \
>                   -Werror-implicit-function-declaration \
>                   -Wno-format-security \
> -                  -fno-delete-null-pointer-checks
> +                  -fno-delete-null-pointer-checks \
> +                  -Wno-unused-but-set-variable

Does this work ok for older gcc's? Do they understand that
-Wno-unused-by-set-variable?

gcc-4.5.1 seems to understand it, but what about much older gccs?

Linus