From bc15b71ec3615b64de28f6ac38946d137f28a8f1 Mon Sep 17 00:00:00 2001 From: uwe Date: Mon, 20 Sep 2010 17:23:38 +0000 Subject: The variable 'ret' is unused when compiling on BigEndian architecture. This produces an "unused variable" message, which might be treated as error if -Werror was passed to compiler. With this patch I was able to compile flashrom cleanly on ppc and ppc64: http://koji.fedoraproject.org/koji/taskinfo?taskID=2472482 http://koji.fedoraproject.org/koji/taskinfo?taskID=2472484 Signed-off-by: Peter Lemenkov Acked-by: Uwe Hermann git-svn-id: https://code.coreboot.org/svn/flashrom/trunk@1180 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- internal.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'internal.c') diff --git a/internal.c b/internal.c index 8b19692..497ce6c 100644 --- a/internal.c +++ b/internal.c @@ -118,7 +118,9 @@ int is_laptop = 0; int internal_init(void) { +#if __FLASHROM_LITTLE_ENDIAN__ int ret = 0; +#endif int force_laptop = 0; char *arg; -- cgit v1.2.1