• Andrii Simiklit's avatar
    intel/tools: avoid 'unused variable' warnings · 69ee49ac
    Andrii Simiklit authored
    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: 's avatarAndrii Simiklit <andrii.simiklit@globallogic.com>
    Reviewed-by: Eric Engestrom's avatarEric Engestrom <eric.engestrom@intel.com>
    69ee49ac
Name
Last commit
Last update
bin Loading commit data...
build-support Loading commit data...
docs Loading commit data...
doxygen Loading commit data...
include Loading commit data...
m4 Loading commit data...
scons Loading commit data...
scripts Loading commit data...
src Loading commit data...
.dir-locals.el Loading commit data...
.editorconfig Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.mailmap Loading commit data...
.travis.yml Loading commit data...
Android.common.mk Loading commit data...
Android.mk Loading commit data...
CleanSpec.mk Loading commit data...
Makefile.am Loading commit data...
README.rst Loading commit data...
REVIEWERS Loading commit data...
SConstruct Loading commit data...
VERSION Loading commit data...
appveyor.yml Loading commit data...
autogen.sh Loading commit data...
common.py Loading commit data...
configure.ac Loading commit data...
install-gallium-links.mk Loading commit data...
install-lib-links.mk Loading commit data...
meson.build Loading commit data...
meson_options.txt Loading commit data...