From 0d797e36ed4478fb8c780a7c327673de01b68439 Mon Sep 17 00:00:00 2001 From: Chun-wei Fan Date: Wed, 23 Mar 2022 11:48:04 +0800 Subject: [PATCH] neon.mak: Silence deprecation/POSIX warnings Define the appropriate macros so that we can see less compiler warnings on using deprecated or POSIX-ish CRT/system APIs, which actually should not really matter. --- neon.mak | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/neon.mak b/neon.mak index 1d26d3b..5d6e24e 100644 --- a/neon.mak +++ b/neon.mak @@ -20,6 +20,10 @@ CFLAGS = /MDd /W3 /Gm /EHsc /Zi /Od /D "_DEBUG" TARGET = .\libneonD.lib !ENDIF +# Silence deprecation warnings on later Visual Studio versions, which +# actually can be ignored +CFLAGS = $(CFLAGS) /D _CRT_SECURE_NO_WARNINGS /D _CRT_NONSTDC_NO_WARNINGS /D _WINSOCK_DEPRECATED_NO_WARNINGS + ######## # Whether to build SSPI !IF "$(SSPI_BUILD)" != "" -- 2.27.0