wok-4.x diff linux/stuff/linux-2.6-no-unused-but-set-variable.patch @ rev 12471
Mass Rebuild of base packages
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Thu Nov 10 11:11:46 2022 +0000 (19 months ago) |
parents | |
children |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/linux/stuff/linux-2.6-no-unused-but-set-variable.patch Thu Nov 10 11:11:46 2022 +0000 1.3 @@ -0,0 +1,13 @@ 1.4 +--- linux-2.6.26/Makefile 2012-03-12 18:13:33.804988330 -0400 1.5 ++++ linux-2.6.26/Makefile 2012-03-12 18:17:19.447640136 -0400 1.6 +@@ -543,6 +543,9 @@ 1.7 + # disable pointer signed / unsigned warnings in gcc 4.0 1.8 + KBUILD_CFLAGS += $(call cc-option,-Wno-pointer-sign,) 1.9 + 1.10 ++# disable the warning/error for unused but set in gcc 4.6 1.11 ++KBUILD_CFLAGS += $(call cc-option,-Wno-unused-but-set-variable,) 1.12 ++ 1.13 + # Add user supplied CPPFLAGS, AFLAGS and CFLAGS as the last assignments 1.14 + # But warn user when we do so 1.15 + warn-assign = \ 1.16 +