intel/tools: avoid 'unused variable' warnings
authorAndrii Simiklit <andrii.simiklit@globallogic.com>
Tue, 13 Nov 2018 12:19:28 +0000 (14:19 +0200)
committerEric Engestrom <eric.engestrom@intel.com>
Wed, 14 Nov 2018 13:35:28 +0000 (13:35 +0000)
commit69ee49ac4678a60e2ae762b9f7752e61d27347c6
treefb5c55748b2693d79701f5a4a0433133165fb395
parent25b48e3df93dee3aed4b7fbf5b542aa500555ee2
intel/tools: avoid 'unused variable' warnings

1. tools/aub_read.c:271:31: warning: unused variable ‘end’
    const uint32_t *p = data, *end = data + data_len, *next;

2. tools/aub_mem.c:292:13: warning: unused variable ‘res’
       void *res = mmap((uint8_t *)bo.map + map_offset, 4096, PROT_READ,
   tools/aub_mem.c:357:13: warning: unused variable ‘res’
       void *res = mmap((uint8_t *)bo.map + (page - bo.addr), 4096, PROT_READ,

v2: The i965_disasm.c changes was moved into a separate patch
    The 'end' variable declared separately with MAYBE_UNUSED
    to avoid effect of it to other variables.
       ( Eric Engestrom <eric.engestrom@intel.com> )

Signed-off-by: Andrii Simiklit <andrii.simiklit@globallogic.com>
Reviewed-by: Eric Engestrom <eric.engestrom@intel.com>
src/intel/tools/aub_mem.c
src/intel/tools/aub_read.c