summaryrefslogtreecommitdiff
path: root/roms/ipxe/src/util/nrv2b.c
diff options
context:
space:
mode:
Diffstat (limited to 'roms/ipxe/src/util/nrv2b.c')
-rw-r--r--roms/ipxe/src/util/nrv2b.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/roms/ipxe/src/util/nrv2b.c b/roms/ipxe/src/util/nrv2b.c
index 6bac4cdda..031f5d9cb 100644
--- a/roms/ipxe/src/util/nrv2b.c
+++ b/roms/ipxe/src/util/nrv2b.c
@@ -77,7 +77,7 @@ static __inline__ void Error(char *message)
/* These will be a complete waste of time on a lo-endian */
/* system, but it only gets done once so WTF. */
-static unsigned long i86ul_to_host(unsigned long ul)
+static unsigned long __attribute__ (( unused )) i86ul_to_host(unsigned long ul)
{
unsigned long res = 0;
int i;
@@ -209,7 +209,7 @@ struct ucl_compress
#define SWD_HSIZE 16384
#define SWD_MAX_CHAIN 2048
-#define SWD_BEST_OFF 1
+#undef SWD_BEST_OFF
#define HEAD3(b,p) \
(((0x9f5f*(((((uint32_t)b[p]<<5)^b[p+1])<<5)^b[p+2]))>>5) & (SWD_HSIZE-1))
@@ -375,7 +375,6 @@ static
int swd_init(struct ucl_swd *s, const uint8_t *dict, unsigned int dict_len)
{
unsigned int i = 0;
- int c = 0;
if (s->n == 0)
s->n = N;
@@ -439,7 +438,7 @@ static
void swd_exit(struct ucl_swd *s)
{
/* unused s */
-
+ ( void ) s;
}
#define swd_pos2off(s,pos) \