Mercurial > hg > nginx
comparison src/os/win32/ngx_win32_config.h @ 6860:f18c285c2e59
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().
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Sat, 24 Dec 2016 18:01:14 +0300 |
parents | 38df52d4e250 |
children | e4590dfd97ff |
comparison
equal
deleted
inserted
replaced
6859:38df52d4e250 | 6860:f18c285c2e59 |
---|---|
116 /* functions containing (for|while|some if) are not expanded inline */ | 116 /* functions containing (for|while|some if) are not expanded inline */ |
117 #pragma warn -8027 | 117 #pragma warn -8027 |
118 | 118 |
119 /* unreferenced formal parameter */ | 119 /* unreferenced formal parameter */ |
120 #pragma warn -8057 | 120 #pragma warn -8057 |
121 | |
122 /* suspicious pointer arithmetic */ | |
123 #pragma warn -8072 | |
121 | 124 |
122 #endif | 125 #endif |
123 | 126 |
124 | 127 |
125 #include <ngx_auto_config.h> | 128 #include <ngx_auto_config.h> |