aboutsummaryrefslogtreecommitdiff
path: root/include/proj/util.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/proj/util.hpp')
-rw-r--r--include/proj/util.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/proj/util.hpp b/include/proj/util.hpp
index 9425c3a3..e4d6c3e0 100644
--- a/include/proj/util.hpp
+++ b/include/proj/util.hpp
@@ -206,7 +206,7 @@ template <class T> class optional {
inline explicit optional(T &&val)
: hasVal_(true), val_(std::forward<T>(val)) {}
- inline optional(const optional &other) = default;
+ inline optional(const optional &) = default;
inline optional(optional &&other) PROJ_NOEXCEPT
: hasVal_(other.hasVal_),
// cppcheck-suppress functionStatic
@@ -224,7 +224,7 @@ template <class T> class optional {
val_ = std::forward<T>(val);
return *this;
}
- inline optional &operator=(const optional &other) = default;
+ inline optional &operator=(const optional &) = default;
inline optional &operator=(optional &&other) noexcept {
hasVal_ = other.hasVal_;
val_ = std::forward<T>(other.val_);