aboutsummaryrefslogtreecommitdiff
path: root/include/proj
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@spatialys.com>2019-10-15 09:28:59 +0200
committerEven Rouault <even.rouault@spatialys.com>2019-10-15 09:28:59 +0200
commit225435e9083ebc2fd6e135dfa009d2a0339d1125 (patch)
treeb6c398c75f8399f6bd1087717119533dda0f9445 /include/proj
parent368b96f05de390ecf7e904a4a9b24ee4b8c8056b (diff)
downloadPROJ-225435e9083ebc2fd6e135dfa009d2a0339d1125.tar.gz
PROJ-225435e9083ebc2fd6e135dfa009d2a0339d1125.zip
include/proj/util.hpp: avoid warnings with older gcc
Diffstat (limited to 'include/proj')
-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_);