[flashrom] [PATCH] Suppress error message from GCC while compiling with -Werror

Peter Lemenkov lemenkov at gmail.com
Fri Sep 17 11:21:05 CEST 2010

The variable 'ret' is unused when compiling on BigEndian architecture. This
produces "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:


Signed-off-by: Peter Lemenkov <lemenkov at gmail.com>
 internal.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

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)
 	int ret = 0;
 	int force_laptop = 0;
 	char *arg;

More information about the flashrom mailing list