[Pkg-voip-commits] [bctoolbox] 31/60: Fix windows build by tolerating "was deprecated" warnings.

Bernhard Schmidt berni at moszumanska.debian.org
Sun Oct 15 22:42:25 UTC 2017


This is an automated email from the git hooks/post-receive script.

berni pushed a commit to branch debian/sid
in repository bctoolbox.

commit 568ddca7e0d4d74a0f44a803471613b8d9294a2e
Author: Simon Morlat <simon.morlat at linphone.org>
Date:   Thu May 11 21:39:28 2017 +0200

    Fix windows build by tolerating "was deprecated" warnings.
---
 src/CMakeLists.txt | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 76a6ecf..270ee0a 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -28,7 +28,8 @@ set(BCTOOLBOX_C_SOURCE_FILES
 	vconnect.c
 )
 
-set(BCTOOLBOX_CXX_SOURCE_FILES containers/map.cc)
+set(BCTOOLBOX_CXX_SOURCE_FILES containers/map.cc)
+
 
 if(HAVE_EXECINFO) 
 	list(APPEND BCTOOLBOX_CXX_SOURCE_FILES utils/exception.cc)
@@ -224,3 +225,10 @@ if(ENABLE_SHARED)
 		)
 	endif()
 endif()
+
+
+if(MSVC)
+		#disable "was deprecated" warnings of windows compiler (typically using strcpy_s instead of strcpy and stupid things like this)
+        target_compile_options(bctoolbox PRIVATE "/wd4996")
+		target_compile_options(bctoolbox-tester PRIVATE "/wd4996")
+endif()

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-voip/bctoolbox.git



More information about the Pkg-voip-commits mailing list