diff options
author | Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com) <spamtrap@nedprod.com> | 2021-02-03 19:59:49 +0300 |
---|---|---|
committer | Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com) <spamtrap@nedprod.com> | 2021-02-03 19:59:49 +0300 |
commit | 47fac4cc563d6cb018872263e7f1efa8b839a300 (patch) | |
tree | 92f12fcad2ec47e01afb2c815de0637903ef454c | |
parent | 9294f05d48220a6a5d6d307da5fe8f236dd020cf (diff) |
Suppress warning on older GCCs and clangs.
-rw-r--r-- | include/llfio/v2.0/handle.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/llfio/v2.0/handle.hpp b/include/llfio/v2.0/handle.hpp index c5f99beb..5b737a15 100644 --- a/include/llfio/v2.0/handle.hpp +++ b/include/llfio/v2.0/handle.hpp @@ -568,7 +568,7 @@ namespace detail #pragma warning(push) #pragma warning(disable : 4996) // the function may be unsafe #endif -#ifdef __GNUC__ +#if (__GNUC__ >= 8) && !defined(__clang__) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wstringop-overflow" #endif @@ -577,7 +577,7 @@ namespace detail // See https://godbolt.org/z/d69xzd for proof. // So I don't know why there is a warning here about overflowing a buffer of 16! strncpy(tls.next(dest._tls_path_id1), QUICKCPPLIB_NAMESPACE::ringbuffer_log::last190(currentpath), 190); -#ifdef __GNUC__ +#if (__GNUC__ >= 8) && !defined(__clang__) #pragma GCC diagnostic pop #endif #ifdef _MSC_VER |