[kernel/2.6.30] remove some annoying warnings and fix snd modules build
[openwrt.git] / target / linux / generic / patches-2.6.37 / 970-mips-gcc-4.6-set-but-unused-fixes.patch
1 --- a/Makefile
2 +++ b/Makefile
3 @@ -354,7 +354,8 @@ KBUILD_CFLAGS   := -Wall -Wundef -Wstric
4                    -fno-strict-aliasing -fno-common \
5                    -Werror-implicit-function-declaration \
6                    -Wno-format-security \
7 -                  -fno-delete-null-pointer-checks
8 +                  -fno-delete-null-pointer-checks \
9 +                  -Wno-error=unused-but-set-variable
10  KBUILD_AFLAGS_KERNEL :=
11  KBUILD_CFLAGS_KERNEL :=
12  KBUILD_AFLAGS   := -D__ASSEMBLY__