neon/neon-0.30.2-backport-neon.mak-Silence-deprecation-POSIX-warnings.patch
yaoguangzhong 3597ffde2e backport neon.mak: Silence deprecation/POSIX warnings
From: Chun-wei Fan <fanchunwei@src.gnome.org>
Signed-off-by: Guangzhong Yao <yaoguangzhong@xfusion.com>
2022-12-30 12:53:24 +08:00

31 lines
917 B
Diff

From 0d797e36ed4478fb8c780a7c327673de01b68439 Mon Sep 17 00:00:00 2001
From: Chun-wei Fan <fanchunwei@src.gnome.org>
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