Skip to content

Commit

Permalink
Suppress warning on older GCCs and clangs.
Browse files Browse the repository at this point in the history
  • Loading branch information
ned14 committed Feb 3, 2021
1 parent 9294f05 commit 47fac4c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/llfio/v2.0/handle.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 47fac4c

Please sign in to comment.