Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Report a bug
2020-06-27, 22:15
Post: #7
Compile v1.20.1: error: array subscript i is outside array bounds
When compiling ipxe tag 1.20.1 I have the following error when running (only tested those):
make bin/undionly.kpxe
make bin-x86_64-efi/ipxe.efi


drivers/net/intelvf.c: In function ‘intelvf_mbox_poll’:
drivers/net/intelvf.c:80:13: error: array subscript i is outside array bounds of ‘uint32_t[0]’ {aka ‘unsigned int[]’} [-Werror=array-bounds]
80 | msg->dword[i] = readl ( intel->regs + intel->mbox.mem +
| ~~~~~~~~~~^~~
In file included from drivers/net/intelvf.c:32:
drivers/net/intelvf.h:135:11: note: while referencing ‘dword’
135 | uint32_t dword[0];
| ^~~~~
drivers/net/intelvf.c:98:20: note: defined here ‘msg’
98 | union intelvf_msg msg;
| ^~~
cc1: all warnings being treated as errors
make: *** [Makefile.housekeeping:946: bin/intelvf.o] Error 1
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Report a bug - BloodFox - 2014-03-27, 09:36
RE: Report a bug - robinsmidsrod - 2014-04-18, 13:21
RE: Report a bug - BloodFox - 2014-04-19, 01:52
RE: Report a bug - bleckers - 2014-06-06, 04:00
RE: Report a bug - bleckers - 2014-06-06, 06:23
RE: Report a bug - leandrolnh - 2014-07-28, 06:34
Compile v1.20.1: error: array subscript i is outside array bounds - samuelbernardo - 2020-06-27 22:15



User(s) browsing this thread: 1 Guest(s)