aboutsummaryrefslogtreecommitdiff
path: root/libcxx/include/__format
diff options
context:
space:
mode:
authorIgor Zhukov <fsb4000@yandex.ru>2023-09-08 11:15:53 -0400
committerLouis Dionne <ldionne.2@gmail.com>2023-09-12 08:53:38 -0400
commit70248920fcd804a5825ecf69f24b96a7e340afe6 (patch)
tree90464ecab124d792abde71b02d489a212fbdd909 /libcxx/include/__format
parentec0f67874406e7f9d85b0a5da674565296ad7698 (diff)
downloadllvm-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.h2
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;
};