diff options
author | Anuj Mittal <anuj.mittal@intel.com> | 2019-06-01 09:47:23 +0800 |
---|---|---|
committer | Anuj Mittal <anuj.mittal@intel.com> | 2019-06-01 14:52:55 +0800 |
commit | 40d6871a07408a13f8c400449af79f5f1a804fec (patch) | |
tree | c5a319245ec7a7ebb880cee0073843a1ef136f6c /.gitignore | |
parent | 35555fb5197cb8f0e0c4062b82156b38e832cb01 (diff) | |
download | meta-intel-40d6871a07408a13f8c400449af79f5f1a804fec.tar.gz |
igt-gpu-tools: fix build error with gcc9
Backport from master to fix build error when building with gcc 9:
| ../../igt-gpu-tools-1.23/lib/igt_fb.c: In function 'create_bo_for_fb':
| ../../igt-gpu-tools-1.23/lib/igt_fb.c:413:16: warning: pointer of type 'void *' used in arithmetic [-Wpointer-arith]
| 413 | memset(ptr + offsets[0], full_range ? 0x00 : 0x10,
| | ^
| ../../igt-gpu-tools-1.23/lib/igt_fb.c:415:16: warning: pointer of type 'void *' used in arithmetic [-Wpointer-arith]
| 415 | memset(ptr + offsets[1], 0x80,
| | ^
| ../../igt-gpu-tools-1.23/lib/igt_fb.c: In function 'convert_rgb24_to_nv12':
| ../../igt-gpu-tools-1.23/lib/igt_fb.c:1382:12: error: array subscript 2 is outside array bounds of 'struct igt_vec4[2]' [-Werror=array-bounds]
| 1382 | rgb->d[0] = rgb24[2];
| | ~~~~~~~~~~^~~~~~~~~~
| ../../igt-gpu-tools-1.23/lib/igt_fb.c:1549:20: note: while referencing 'rgb'
| 1549 | struct igt_vec4 rgb[2];
| | ^~~
| ../../igt-gpu-tools-1.23/lib/igt_fb.c:1383:12: error: array subscript 2 is outside array bounds of 'struct igt_vec4[2]' [-Werror=array-bounds]
| 1383 | rgb->d[1] = rgb24[1];
| | ~~~~~~~~~~^~~~~~~~~~
| ../../igt-gpu-tools-1.23/lib/igt_fb.c:1549:20: note: while referencing 'rgb'
| 1549 | struct igt_vec4 rgb[2];
| | ^~~
| ../../igt-gpu-tools-1.23/lib/igt_fb.c:1384:12: error: array subscript 2 is outside array bounds of 'struct igt_vec4[2]' [-Werror=array-bounds]
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Diffstat (limited to '.gitignore')
0 files changed, 0 insertions, 0 deletions