Ticket #11214: 970-mips-gcc-4.6-set-but-unused-fixes.patch

File 970-mips-gcc-4.6-set-but-unused-fixes.patch, 443 bytes (added by anonymous, 6 years ago)

Fix variable set but not used [-Werror=unused-but-set-variable] errors with 2.6.38.8 kernel

  • Makefile

    old new  
    355355                   -fno-strict-aliasing -fno-common \ 
    356356                   -Werror-implicit-function-declaration \ 
    357357                   -Wno-format-security \ 
    358                    -fno-delete-null-pointer-checks 
     358                   -fno-delete-null-pointer-checks \ 
     359                   -Wno-error=unused-but-set-variable 
    359360KBUILD_AFLAGS_KERNEL := 
    360361KBUILD_CFLAGS_KERNEL := 
    361362KBUILD_AFLAGS   := -D__ASSEMBLY__