Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

MIPS: Loongson: Fix GCC 2.6.0 build error.

CC arch/mips/loongson/common/env.o
arch/mips/loongson/common/env.c: In function 'prom_init_env':
arch/mips/loongson/common/env.c:50:12: error: variable 'ret' set but not used [-Werror=unused-but-set-variable]
arch/mips/loongson/common/env.c:51:12: error: variable 'ret' set but not used [-Werror=unused-but-set-variable]
arch/mips/loongson/common/env.c:52:12: error: variable 'ret' set but not used [-Werror=unused-but-set-variable]
arch/mips/loongson/common/env.c:53:12: error: variable 'ret' set but not used [-Werror=unused-but-set-variable]
cc1: all warnings being treated as errors

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>

+3 -2
+3 -2
arch/mips/loongson/common/env.c
··· 29 29 30 30 #define parse_even_earlier(res, option, p) \ 31 31 do { \ 32 - int ret; \ 32 + unsigned int tmp __maybe_unused; \ 33 + \ 33 34 if (strncmp(option, (char *)p, strlen(option)) == 0) \ 34 - ret = strict_strtol((char *)p + strlen(option"="), 10, &res); \ 35 + tmp = strict_strtol((char *)p + strlen(option"="), 10, &res); \ 35 36 } while (0) 36 37 37 38 void __init prom_init_env(void)