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