2
0
mirror of https://github.com/boostorg/spirit.git synced 2026-01-19 04:42:11 +00:00

CI: Re-enable -Wdeprecated-copy on Clang

This commit is contained in:
Nikita Kniazev
2021-12-15 03:29:40 +03:00
parent e4092c6f3b
commit bff0126954
3 changed files with 8 additions and 6 deletions

View File

@@ -421,9 +421,6 @@ jobs:
# -Wextra warnings:
-Wno-deprecated-copy # Proto, Phoenix, GCC bug 92145
: unchecked ;
toolset.flags clang-linux.compile OPTIONS <known-warnings>suppress :
-Wno-deprecated-copy # Proto, Phoenix
: unchecked ;
EOF
# Determining the root branch

View File

@@ -119,9 +119,6 @@ before_install:
# -Wextra warnings:
-Wno-deprecated-copy # Proto, Phoenix, GCC bug 92145
: unchecked ;
toolset.flags clang-linux.compile OPTIONS <known-warnings>suppress :
-Wno-deprecated-copy # Proto, Phoenix
: unchecked ;
- |
# Determining the root branch

View File

@@ -9,6 +9,14 @@
#include <iostream>
#include <cctype>
#include <boost/core/lightweight_test.hpp>
// suppress -Wdeprecated-copy from dynamic_bitset and random
#if defined(__GNUC__) && __GNUC__ >= 9
# pragma GCC diagnostic ignored "-Wdeprecated-copy"
#elif defined(__clang__) && defined(__has_warning)
# if __has_warning("-Wdeprecated-copy")
# pragma clang diagnostic ignored "-Wdeprecated-copy"
# endif
#endif
#include <boost/dynamic_bitset.hpp>
#include <boost/integer_traits.hpp>
#if defined(_MSC_VER) && _MSC_VER < 1700