backport neon.mak: Silence deprecation/POSIX warnings
From: Chun-wei Fan <fanchunwei@src.gnome.org> Signed-off-by: Guangzhong Yao <yaoguangzhong@xfusion.com>
This commit is contained in:
parent
0dd338afa1
commit
5aedbee59a
@ -0,0 +1,30 @@
|
||||
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
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
Name: neon
|
||||
Version: 0.30.2
|
||||
Release: 14
|
||||
Release: 15
|
||||
Summary: An HTTP and WebDAV client library
|
||||
License: LGPLv2+
|
||||
URL: http://www.webdav.org/neon/
|
||||
@ -12,6 +12,7 @@ Patch1: neon-0.30.2-sysuioh.patch
|
||||
Patch2: neon-0.30.2-lockprintf.patch
|
||||
Patch3: neon-0.30.2-test-.c-Switch-to-destroy_and_wait-in-various-places.patch
|
||||
Patch4: neon-0.30.2-backport-mak-Replace-GX-with-EHsc.patch
|
||||
Patch5: neon-0.30.2-backport-neon.mak-Silence-deprecation-POSIX-warnings.patch
|
||||
|
||||
BuildRequires: gcc openssl-devel expat-devel gdb-headless
|
||||
Requires: ca-certificates
|
||||
@ -85,6 +86,9 @@ sed -ri "/^dependency_libs/{s,-l[^ ']*,,g}" \
|
||||
%{_mandir}/man3/*
|
||||
|
||||
%changelog
|
||||
* Fri Dec 30 2022 Guangzhong Yao <yaoguangzhong@xfusion.com> - 0.30.2-15
|
||||
- DESC: backport neon.mak: Silence deprecation/POSIX warnings
|
||||
|
||||
* Thu Dec 29 2022 Guangzhong Yao <yaoguangzhong@xfusion.com> - 0.30.2-14
|
||||
- DESC: backport neon.mak Replace GX with EHsc
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user