summaryrefslogtreecommitdiff
path: root/Utilities
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2021-01-25 14:44:09 -0500
committerBrad King <brad.king@kitware.com>2021-01-25 14:44:09 -0500
commitb7d4ee23d859c8734ef8d625466739808093bc57 (patch)
treee4a0f9cf57475c6704aa6e9a73b718504ef819c8 /Utilities
parent4f9228a3001dd104a19c5eced3dcb36eef7102f4 (diff)
downloadcmake-b7d4ee23d859c8734ef8d625466739808093bc57.tar.gz
cm::optional: Fix `-Wunused-parameter` warnings in comparison operators
Diffstat (limited to 'Utilities')
-rw-r--r--Utilities/std/cm/optional8
1 files changed, 4 insertions, 4 deletions
diff --git a/Utilities/std/cm/optional b/Utilities/std/cm/optional
index 0defae1608..2ebc78c0bb 100644
--- a/Utilities/std/cm/optional
+++ b/Utilities/std/cm/optional
@@ -313,7 +313,7 @@ bool operator!=(const optional<T>& opt, nullopt_t) noexcept
}
template <typename T>
-bool operator<(const optional<T>& opt, nullopt_t) noexcept
+bool operator<(const optional<T>& /*opt*/, nullopt_t) noexcept
{
return false;
}
@@ -331,7 +331,7 @@ bool operator>(const optional<T>& opt, nullopt_t) noexcept
}
template <typename T>
-bool operator>=(const optional<T>& opt, nullopt_t) noexcept
+bool operator>=(const optional<T>& /*opt*/, nullopt_t) noexcept
{
return true;
}
@@ -355,13 +355,13 @@ bool operator<(nullopt_t, const optional<T>& opt) noexcept
}
template <typename T>
-bool operator<=(nullopt_t, const optional<T>& opt) noexcept
+bool operator<=(nullopt_t, const optional<T>& /*opt*/) noexcept
{
return true;
}
template <typename T>
-bool operator>(nullopt_t, const optional<T>& opt) noexcept
+bool operator>(nullopt_t, const optional<T>& /*opt*/) noexcept
{
return false;
}