]> git.kaiwu.me - nginx.git/commit
Win32: fixed some warnings reported by Borland C.
authorMaxim Dounin <mdounin@mdounin.ru>
Sat, 24 Dec 2016 15:01:14 +0000 (18:01 +0300)
committerMaxim Dounin <mdounin@mdounin.ru>
Sat, 24 Dec 2016 15:01:14 +0000 (18:01 +0300)
commitc17009ee756bf16e702ed48ef667765c121e36d6
treec8f74895ac97264625ba4c3ded5f1e4a931bf5e9
parenta43b2c96b20aa675601c43785397aabd8335a891
Win32: fixed some warnings reported by Borland C.

Most notably, warning W8012 (comparing signed and unsigned values) reported
in multiple places where an unsigned value of small type (e.g., u_short) is
promoted to an int and compared to an unsigned value.

Warning W8072 (suspicious pointer arithmetic) disabled, it is reported
when we increment base pointer in ngx_shm_alloc().
src/core/ngx_resolver.c
src/http/modules/ngx_http_sub_filter_module.c
src/http/ngx_http_file_cache.c
src/mail/ngx_mail_smtp_module.c
src/os/win32/ngx_win32_config.h