aboutsummaryrefslogtreecommitdiffstats
path: root/target
diff options
context:
space:
mode:
authorFlorian Fainelli <florian@openwrt.org>2012-04-04 15:53:04 +0000
committerFlorian Fainelli <florian@openwrt.org>2012-04-04 15:53:04 +0000
commitdb04bcb8e74485157a3bd2668750583a2f84889c (patch)
tree7e919c5d744d3187903083d1a5f63303f235e715 /target
parent30f0cb476f27602c4987f5ae770c72be56533e64 (diff)
downloadupstream-db04bcb8e74485157a3bd2668750583a2f84889c.tar.gz
upstream-db04bcb8e74485157a3bd2668750583a2f84889c.tar.bz2
upstream-db04bcb8e74485157a3bd2668750583a2f84889c.zip
fix gcc-4.6 set but unused warnings
SVN-Revision: 31192
Diffstat (limited to 'target')
-rw-r--r--target/linux/generic/patches-2.6.38/970-mips-gcc-4.6-set-but-unused-fixes.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/target/linux/generic/patches-2.6.38/970-mips-gcc-4.6-set-but-unused-fixes.patch b/target/linux/generic/patches-2.6.38/970-mips-gcc-4.6-set-but-unused-fixes.patch
new file mode 100644
index 0000000000..1721a8fa76
--- /dev/null
+++ b/target/linux/generic/patches-2.6.38/970-mips-gcc-4.6-set-but-unused-fixes.patch
@@ -0,0 +1,24 @@
+--- a/arch/mips/mm/tlbex.c
++++ b/arch/mips/mm/tlbex.c
+@@ -1151,8 +1151,8 @@ static void __cpuinit build_r4000_tlb_re
+ struct uasm_reloc *r = relocs;
+ u32 *f;
+ unsigned int final_len;
+- struct mips_huge_tlb_info htlb_info;
+- enum vmalloc64_mode vmalloc_mode;
++ struct mips_huge_tlb_info htlb_info __maybe_unused;
++ enum vmalloc64_mode vmalloc_mode __maybe_unused;
+
+ memset(tlb_handler, 0, sizeof(tlb_handler));
+ memset(labels, 0, sizeof(labels));
+--- a/arch/mips/mm/c-r4k.c
++++ b/arch/mips/mm/c-r4k.c
+@@ -1075,7 +1075,7 @@ static int __cpuinit probe_scache(void)
+ unsigned long flags, addr, begin, end, pow2;
+ unsigned int config = read_c0_config();
+ struct cpuinfo_mips *c = &current_cpu_data;
+- int tmp;
++ int tmp __maybe_unused;
+
+ if (config & CONF_SC)
+ return 0;