diff options
author | Igor Zhukov <fsb4000@yandex.ru> | 2023-09-08 11:15:53 -0400 |
---|---|---|
committer | Louis Dionne <ldionne.2@gmail.com> | 2023-09-12 08:53:38 -0400 |
commit | 70248920fcd804a5825ecf69f24b96a7e340afe6 (patch) | |
tree | 90464ecab124d792abde71b02d489a212fbdd909 /libcxx/include/__format | |
parent | ec0f67874406e7f9d85b0a5da674565296ad7698 (diff) | |
download | llvm-70248920fcd804a5825ecf69f24b96a7e340afe6.zip llvm-70248920fcd804a5825ecf69f24b96a7e340afe6.tar.gz llvm-70248920fcd804a5825ecf69f24b96a7e340afe6.tar.bz2 |
[libc++][test] Add '-Wdeprecated-copy', '-Wdeprecated-copy-dtor' warnings to the test suite
This is a follow up to https://reviews.llvm.org/D144694.
Fixes https://github.com/llvm/llvm-project/issues/60977.
Differential Revision: https://reviews.llvm.org/D144775
Diffstat (limited to 'libcxx/include/__format')
-rw-r--r-- | libcxx/include/__format/format_error.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libcxx/include/__format/format_error.h b/libcxx/include/__format/format_error.h index f22cb0b..51d6c58 100644 --- a/libcxx/include/__format/format_error.h +++ b/libcxx/include/__format/format_error.h @@ -30,6 +30,8 @@ public: : runtime_error(__s) {} _LIBCPP_HIDE_FROM_ABI explicit format_error(const char* __s) : runtime_error(__s) {} + _LIBCPP_HIDE_FROM_ABI format_error(const format_error&) = default; + _LIBCPP_HIDE_FROM_ABI format_error& operator=(const format_error&) = default; _LIBCPP_HIDE_FROM_ABI_VIRTUAL ~format_error() noexcept override = default; }; |