From c17009ee756bf16e702ed48ef667765c121e36d6 Mon Sep 17 00:00:00 2001 From: Maxim Dounin Date: Sat, 24 Dec 2016 18:01:14 +0300 Subject: 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/os/win32/ngx_win32_config.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/os') diff --git a/src/os/win32/ngx_win32_config.h b/src/os/win32/ngx_win32_config.h index ecdf6ad07..c5e26dcbd 100644 --- a/src/os/win32/ngx_win32_config.h +++ b/src/os/win32/ngx_win32_config.h @@ -119,6 +119,9 @@ typedef long time_t; /* unreferenced formal parameter */ #pragma warn -8057 +/* suspicious pointer arithmetic */ +#pragma warn -8072 + #endif -- cgit