From e4cd4dfb039b1a917c3d46bfdff57bbfefeca818 Mon Sep 17 00:00:00 2001 From: Vladimir Prus Date: Tue, 11 Apr 2006 08:16:35 +0000 Subject: [PATCH] Disable 'deprecation' warnings when warnings=off. Otherwise, user building with warnings=off will still get some warnings. [SVN r33658] --- src/tools/msvc.jam | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/tools/msvc.jam b/src/tools/msvc.jam index f8fc21b7d..c7b69be7a 100644 --- a/src/tools/msvc.jam +++ b/src/tools/msvc.jam @@ -399,7 +399,10 @@ local rule configure-version-specific ( version : condition ) { flags msvc.compile CFLAGS $(condition) : /Zc:forScope /Zc:wchar_t ; flags msvc.compile.c++ C++FLAGS $(condition) : /wd4675 ; - flags msvc.compile CFLAGS $(condition)/all : /Wp64 ; # 64-bit compatibility warning + # disable the function is deprecated warning + flags msvc.compile CFLAGS $(condition)/off : /wd4996 ; + # 64-bit compatibility warning + flags msvc.compile CFLAGS $(condition)/all : /Wp64 ; } #