Skip to content

Commit 33e94d4

Browse files
authored
Merge pull request #466 from boostorg/pr/clang-win-werror
Disable more Clang warnings. Fixes #465.
2 parents 1c2ab97 + 6cfef95 commit 33e94d4

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

include/boost/test/detail/suppress_warnings.hpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@
3030
# pragma clang diagnostic push
3131
# pragma clang diagnostic ignored "-Wvariadic-macros"
3232
# pragma clang diagnostic ignored "-Wmissing-declarations"
33+
# pragma clang diagnostic ignored "-Wdeprecated-declarations"
34+
# if BOOST_CLANG_VERSION >= 190000
35+
# pragma clang diagnostic ignored "-Wcast-function-type-mismatch"
36+
# endif
3337
#endif
3438

3539
#if defined(BOOST_GCC) && (BOOST_GCC >= 4 * 10000 + 6 * 100)

include/boost/test/utils/runtime/env/fetch.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ namespace env_detail {
3232

3333
#ifndef UNDER_CE
3434

35-
#ifdef BOOST_MSVC
35+
#ifdef _MSC_VER
3636
#pragma warning(push)
3737
#pragma warning(disable:4996) // getenv
3838
#endif
@@ -46,7 +46,7 @@ sys_read_var( cstring var_name )
4646
return std::make_pair( cstring(res), res != NULL );
4747
}
4848

49-
#ifdef BOOST_MSVC
49+
#ifdef _MSC_VER
5050
#pragma warning(pop)
5151
#endif
5252

0 commit comments

Comments
 (0)