From 225435e9083ebc2fd6e135dfa009d2a0339d1125 Mon Sep 17 00:00:00 2001 From: Even Rouault Date: Tue, 15 Oct 2019 09:28:59 +0200 Subject: include/proj/util.hpp: avoid warnings with older gcc --- include/proj/util.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/proj/util.hpp') 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 optional { inline explicit optional(T &&val) : hasVal_(true), val_(std::forward(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 optional { val_ = std::forward(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(other.val_); -- cgit v1.2.3