diff options
author | Jordan Maples <jomaples@microsoft.com> | 2019-10-04 12:38:55 -0700 |
---|---|---|
committer | Jordan Maples <jomaples@microsoft.com> | 2019-10-04 12:38:55 -0700 |
commit | 2b8f7aea325ed2ef193d572599820aad098ebf40 (patch) | |
tree | d61fb1bbb436976e17e4df495835fd0da26bfc3c /include | |
parent | 7adf7eb6fe4c8d90a60df6ba2833b55146f79716 (diff) | |
download | platform_external_Microsoft-GSL-2b8f7aea325ed2ef193d572599820aad098ebf40.tar.gz platform_external_Microsoft-GSL-2b8f7aea325ed2ef193d572599820aad098ebf40.tar.bz2 platform_external_Microsoft-GSL-2b8f7aea325ed2ef193d572599820aad098ebf40.zip |
adding clang/gcc suppression of the deprecation warnings.
Diffstat (limited to 'include')
-rw-r--r-- | include/gsl/multi_span | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/gsl/multi_span b/include/gsl/multi_span index d2b2a69..3a2d982 100644 --- a/include/gsl/multi_span +++ b/include/gsl/multi_span @@ -57,6 +57,11 @@ #endif // _MSC_VER < 1910 #endif // _MSC_VER +#if __clang__ || __GNUC__ +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wdeprecated-declarations" +#endif + // GCC 7 does not like the signed unsigned missmatch (size_t ptrdiff_t) // While there is a conversion from signed to unsigned, it happens at // compiletime, so the compiler wouldn't have to warn indiscriminently, but @@ -2261,4 +2266,8 @@ general_span_iterator<Span> operator+(typename general_span_iterator<Span>::diff #pragma GCC diagnostic pop #endif // __GNUC__ > 6 +#if __clang__ || __GNUC__ +#pragma GCC diagnostic pop +#endif + #endif // GSL_MULTI_SPAN_H |