Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/windirstat/llfio.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNiall Douglas (s [underscore] sourceforge {at} nedprod [dot] com) <spamtrap@nedprod.com>2021-02-03 19:59:49 +0300
committerNiall Douglas (s [underscore] sourceforge {at} nedprod [dot] com) <spamtrap@nedprod.com>2021-02-03 19:59:49 +0300
commit47fac4cc563d6cb018872263e7f1efa8b839a300 (patch)
tree92f12fcad2ec47e01afb2c815de0637903ef454c
parent9294f05d48220a6a5d6d307da5fe8f236dd020cf (diff)
Suppress warning on older GCCs and clangs.
-rw-r--r--include/llfio/v2.0/handle.hpp4
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