[flashrom] [commit] r1180 - trunk
repository service
svn at flashrom.org
Mon Sep 20 19:23:38 CEST 2010
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 <lemenkov at gmail.com>
Acked-by: Uwe Hermann <uwe at hermann-uwe.de>
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;
More information about the flashrom
mailing list