diff options
author | Peter Lemenkov <lemenkov@gmail.com> | 2010-09-20 17:23:38 +0000 |
---|---|---|
committer | Uwe Hermann <uwe@hermann-uwe.de> | 2010-09-20 17:23:38 +0000 |
commit | 0a6f9ca171a205129573c11564c91701bc45f83c (patch) | |
tree | f13ccadb18e166402eeaa529276dbc570497a80e | |
parent | eaf5ead473f738b948ec307d0f673414e04cf75c (diff) | |
download | flashrom-0a6f9ca171a205129573c11564c91701bc45f83c.tar.gz flashrom-0a6f9ca171a205129573c11564c91701bc45f83c.tar.bz2 flashrom-0a6f9ca171a205129573c11564c91701bc45f83c.zip |
internal: remove unused variable
The variable 'ret' is unused when compiling on big-endian 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
Corresponding to flashrom svn r1180.
Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>
Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
-rw-r--r-- | internal.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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; |