• Zebediah Figura's avatar
    libwine: Avoid comparing the result of pointer arithmetic to zero. · d17fe0a7
    Zebediah Figura authored
    gcc warns about this:
    
    ../wine/libs/wine/mmap.c: In function ‘wine_mmap_add_reserved_area_obsolete’:
    ../wine/libs/wine/mmap.c:504:9: error: the comparison will always evaluate as ‘true’ for the pointer operand in ‘(char *)addr + (sizetype)size’ must not be NULL [-Werror=address]
      504 |     if (!((char *)addr + size)) size--;  /* avoid wrap-around */
          |         ^
    d17fe0a7
mmap.c 21.8 KB