diff options
author | Niall Douglas <s_github@nedprod.com> | 2022-09-20 21:59:52 +0300 |
---|---|---|
committer | Niall Douglas <s_github@nedprod.com> | 2022-09-20 21:59:52 +0300 |
commit | 27ebdf0b993fe2ad1179dad33dacbcd2dc4d9546 (patch) | |
tree | 2ca219b5ada3d851911ad897f4442e614882e564 | |
parent | f8d2eebeb1742a5ebec4da856d47ba6fd1a48a8c (diff) |
Suppress warning on GCC about memcpy into a status_code<void>all_tests_passed_27ebdf0b993fe2ad1179dad33dacbcd2dc4d9546
-rw-r--r-- | include/llfio/v2.0/status_code.hpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/include/llfio/v2.0/status_code.hpp b/include/llfio/v2.0/status_code.hpp index 9813f4a1..186e89bf 100644 --- a/include/llfio/v2.0/status_code.hpp +++ b/include/llfio/v2.0/status_code.hpp @@ -1,5 +1,5 @@ /* LLFIO error handling -(C) 2018-2020 Niall Douglas <http://www.nedproductions.biz/> (24 commits) +(C) 2018-2022 Niall Douglas <http://www.nedproductions.biz/> (24 commits) File Created: June 2018 @@ -253,6 +253,10 @@ protected: memcpy(p, ret.c_str(), ret.size() + 1); return atomic_refcounted_string_ref(p, ret.size()); } +#if defined(__GNUC__) && !defined(__clang__) +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wclass-memaccess" +#endif virtual bool _do_erased_copy(SYSTEM_ERROR2_NAMESPACE::status_code<void> &dst, const SYSTEM_ERROR2_NAMESPACE::status_code<void> &src, typename _base::payload_info_t dstinfo) const override { @@ -274,6 +278,9 @@ protected: } return false; } +#if defined(__GNUC__) && !defined(__clang__) +#pragma GCC diagnostic pop +#endif }; #if __cplusplus >= 201402L || defined(_MSC_VER) template <class BaseStatusCodeDomain> constexpr file_io_error_domain<BaseStatusCodeDomain> file_io_error_domain_inst = {}; |