diff options
author | Thomas Huth <thuth@linux.vnet.ibm.com> | 2011-09-28 13:45:55 +0200 |
---|---|---|
committer | Thomas Huth <thuth@linux.vnet.ibm.com> | 2011-10-12 12:50:05 +0200 |
commit | 4f6e2c9efe9e5474ef47f667a71b14b812cbd74e (patch) | |
tree | 92801ea4cbcbe39bb924ddfcf1533982ba491e10 /lib/libnvram | |
parent | f90c45697bc340328ecdb5e04ff54be106ca4468 (diff) | |
download | SLOF-4f6e2c9efe9e5474ef47f667a71b14b812cbd74e.zip SLOF-4f6e2c9efe9e5474ef47f667a71b14b812cbd74e.tar.gz SLOF-4f6e2c9efe9e5474ef47f667a71b14b812cbd74e.tar.bz2 |
Fix compiler warnings
GCC 4.6 complains about unused-but-set variables - which can safely be removed
in our cases.
Also fixed a strict-aliasing problem in rtas_flash.c of board-js2x.
Signed-off-by: Thomas Huth <thuth@linux.vnet.ibm.com>
Diffstat (limited to 'lib/libnvram')
-rw-r--r-- | lib/libnvram/envvar.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/libnvram/envvar.c b/lib/libnvram/envvar.c index eec7db7..87aaf27 100644 --- a/lib/libnvram/envvar.c +++ b/lib/libnvram/envvar.c @@ -83,10 +83,9 @@ char *get_env(partition_t part, char *envvar) static int find_last_envvar(partition_t part) { uint8_t last, current; - int offset, len; + int offset; offset=part.addr; - len=part.len; last=nvram_read_byte(part.addr); |