diff options
author | Rodrigo Vivi <rodrigo.vivi@intel.com> | 2016-11-29 12:06:31 -0800 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2016-12-01 08:51:19 +0000 |
commit | d20b870eed83addf4735fd6deaaf9b3cfa0b457d (patch) | |
tree | a2917e72185c99978244c78b68acd865f6384223 /tests | |
parent | 9639577ca6f3793469b31b9231b6fee7efe5cab0 (diff) |
lib/igt_aux.h: Cast is confusing old gcc
I noticed in some machines igt compilation was breaking
after igt_dummyload was introduced.
I don't know exactly why, but it seems this cast seems to let
old gcc a bit confused. Without the cast everything works
properly.
Compilation Error log:
CC igt_dummyload.lo
In file included from igt.h:30:0,
from igt_dummyload.c:25:
igt_aux.h:288:39: error: initializer element is not constant
#define __IGT_INIT_LIST(name) (struct igt_list){ &(name), &(name) }
^
igt_aux.h:289:47: note: in expansion of macro ‘__IGT_INIT_LIST’
#define IGT_LIST(name) struct igt_list name = __IGT_INIT_LIST(name);
^
igt_dummyload.c:50:8: note: in expansion of macro ‘IGT_LIST’
static IGT_LIST(spin_list);
^
make[4]: *** [igt_dummyload.lo] Error 1
Cc: Abdiel Janulgue <abdiel.janulgue@linux.intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Reviewed-by: Abdiel Janulgue <abdiel.janulgue@linux.intel.com>
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions