diff options
author | Brad King <brad.king@kitware.com> | 2021-01-25 14:44:09 -0500 |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2021-01-25 14:44:09 -0500 |
commit | b7d4ee23d859c8734ef8d625466739808093bc57 (patch) | |
tree | e4a0f9cf57475c6704aa6e9a73b718504ef819c8 /Utilities/std | |
parent | 4f9228a3001dd104a19c5eced3dcb36eef7102f4 (diff) | |
download | cmake-b7d4ee23d859c8734ef8d625466739808093bc57.tar.gz |
cm::optional: Fix `-Wunused-parameter` warnings in comparison operators
Diffstat (limited to 'Utilities/std')
-rw-r--r-- | Utilities/std/cm/optional | 8 |
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; } |