[ipxe-devel] util/nrv2b.c:633:17: error: array subscript is above array bounds

Ján ONDREJ (SAL) ondrejj at salstar.sk
Wed Apr 11 17:59:40 UTC 2012


Hello,

  compiling today's git fails with this error:

[ondrejj at 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



More information about the ipxe-devel mailing list