I think it is important, so the people won't have to turn off their warnings when they incorporate foreign code. I am really close to achieve that, by casting many stupid conversions. However, there is one piece of code that needs to be rewritten. I hate to do that with tested bug-free code (Zlib), but if I change this, the whole set of APIs will compile cleanly with the most strict warnings of the intel compiler. Since I am paranoid, could you double check that I am not screwing anything up? Several people may end up using it.
This is the code
Code: Select all
/* We check for insufficient lookahead only every 8th comparison;
* the 256th check will be made at strstart+258.
*/
do {
} while(
*++scan == *++match && *++scan == *++match &&
*++scan == *++match && *++scan == *++match &&
*++scan == *++match && *++scan == *++match &&
*++scan == *++match && *++scan == *++match &&
scan < strend);
Code: Select all
/*MAB: to silence compiler warning, intel 981*/
do {
++scan; ++match; if (*scan != *match) break;
++scan; ++match; if (*scan != *match) break;
++scan; ++match; if (*scan != *match) break;
++scan; ++match; if (*scan != *match) break;
++scan; ++match; if (*scan != *match) break;
++scan; ++match; if (*scan != *match) break;
++scan; ++match; if (*scan != *match) break;
} while (scan < strend);
Miguel