>>> On 4/24/2012 at 12:34 PM, "Joshua C." <[email protected]> wrote: > 2012/4/11 Ján ONDREJ (SAL) <[email protected]>: >> Hello, >> >> compiling today's git fails with this error: >> >> [ondrejj@work src]$ make >> [HOSTCC] util/zbin >> [LD] bin/ipxe.dsk.tmp >> In file included from util/zbin.c:6:0: >> util/nrv2b.c: In function *find_match*: >> util/nrv2b.c:633:17: error: array subscript is above array bounds >> [-Werror=array-bounds] >> util/nrv2b.c:634:14: error: array subscript is above array bounds >> [-Werror=array-bounds] >> cc1: all warnings being treated as errors >> make: *** [util/zbin] Error 1 >> make: *** Waiting for unfinished jobs.... >> >> Suggested change from meteger on IRC helped to solve this problem. >> >> [19:54] <meteger:#ipxe> SALstar: open util/nrv2b.c, go to line 212, and >> change the "#define SWD_BEST_OFF 1" to "#define SWD_BEST_OFF 3" >> >> SAL >> _______________________________________________ >> ipxe-devel mailing list >> [email protected] >> https://lists.ipxe.org/mailman/listinfo/ipxe-devel > > > I patched it like this to temporary solve the problem: > > --- > util/nrv2b.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/util/nrv2b.c b/util/nrv2b.c > index cbb94c0..b7f9be1 100644 > --- a/util/nrv2b.c > +++ b/util/nrv2b.c > @@ -629,7 +629,7 @@ static int swd_search2(struct ucl_swd *s) > s->b[s->bp], s->b[s->bp+1], s->b[key], s->b[key+1]); > #endif > assert(memcmp(&s->b[s->bp],&s->b[key],2) == 0); > -#if defined(SWD_BEST_OFF) > +#if defined(SWD_BEST_OFF) && (SWD_BEST_OFF >= 2) > if (s->best_pos[2] == 0) > s->best_pos[2] = key + 1; > #endif > -- > 1.7.10 > --
That should instead be: +#if defined(SWD_BEST_OFF) && (SWD_BEST_OFF > 2) Bruce _______________________________________________ ipxe-devel mailing list [email protected] https://lists.ipxe.org/mailman/listinfo.cgi/ipxe-devel

