Author: uwe
Date: Mon Sep 20 19:23:38 2010
New Revision: 1180
URL: http://flashrom.org/trac/flashrom/changeset/1180

Log:
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 <[email protected]>
Acked-by: Uwe Hermann <[email protected]>

Modified:
   trunk/internal.c

Modified: trunk/internal.c
==============================================================================
--- trunk/internal.c    Sun Sep 19 01:42:36 2010        (r1179)
+++ trunk/internal.c    Mon Sep 20 19:23:38 2010        (r1180)
@@ -118,7 +118,9 @@
 
 int internal_init(void)
 {
+#if __FLASHROM_LITTLE_ENDIAN__
        int ret = 0;
+#endif
        int force_laptop = 0;
        char *arg;
 

_______________________________________________
flashrom mailing list
[email protected]
http://www.flashrom.org/mailman/listinfo/flashrom

Reply via email to