mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
xen: common: Use unbounded array for symbols_offset.
Using a singleton array causes gcc5 to report:
symbols.c: In function 'symbols_lookup':
symbols.c:128:359: error: array subscript is above array bounds [-Werror=array-bounds]
symbols.c:136:176: error: array subscript is above array bounds [-Werror=array-bounds]
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
master commit: 3f82ea6282
master date: 2015-03-20 12:02:03 +0000
This commit is contained in:
1 parent
a6646a52fd
commit
477bc9b119
1 file changed
+1
-1
@@ -19,7 +19,7 @@
|
||||
#include <xen/spinlock.h>
|
||||
|
||||
#ifdef SYMBOLS_ORIGIN
|
||||
extern const unsigned int symbols_offsets[1];
|
||||
extern const unsigned int symbols_offsets[];
|
||||
#define symbols_address(n) (SYMBOLS_ORIGIN + symbols_offsets[n])
|
||||
#else
|
||||
extern const unsigned long symbols_addresses[];
|
||||
|
||||