diff options
author | Qyriad <qyriad@qyriad.me> | 2024-05-19 12:32:13 -0600 |
---|---|---|
committer | Qyriad <qyriad@qyriad.me> | 2024-05-19 12:32:13 -0600 |
commit | 4eb6779ea8025610d6b2040362e5950c722e4342 (patch) | |
tree | 9060e4548b87398721175a30af1274ce61e5a69e /src/libutil | |
parent | 774c56094f3f3dcb1f25fe147c52604ad664bd5b (diff) |
fix -Wdeprecated-copy on clang (BaseError copy assignment)
2bbe3efd1ยน added the -Wdeprecated-copy warning, and fixed the instances
of it which GCC warned about, in HintFmt and ref<T>. However, when
building with Clang, there is an additional deprecated-copy warning in
BaseError. This commit explicitly defaults the copy assignment operator
for BaseError and silences this warning.
1: 2bbe3efd169534f538184ff788eecb398ead70a4
Change-Id: I50aa4a7ab1a7aae5d7b31f765994abd3db06379d
Diffstat (limited to 'src/libutil')
-rw-r--r-- | src/libutil/error.hh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libutil/error.hh b/src/libutil/error.hh index 924366580..323365d65 100644 --- a/src/libutil/error.hh +++ b/src/libutil/error.hh @@ -110,6 +110,8 @@ protected: public: BaseError(const BaseError &) = default; + BaseError & operator=(BaseError const & rhs) = default; + template<typename... Args> BaseError(unsigned int status, const Args & ... args) : err { .level = lvlError, .msg = HintFmt(args...), .status = status } |