From b7d4ee23d859c8734ef8d625466739808093bc57 Mon Sep 17 00:00:00 2001 From: Brad King Date: Mon, 25 Jan 2021 14:44:09 -0500 Subject: cm::optional: Fix `-Wunused-parameter` warnings in comparison operators --- Utilities/std/cm/optional | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Utilities/std/cm/optional b/Utilities/std/cm/optional index 0defae1..2ebc78c 100644 --- a/Utilities/std/cm/optional +++ b/Utilities/std/cm/optional @@ -313,7 +313,7 @@ bool operator!=(const optional& opt, nullopt_t) noexcept } template -bool operator<(const optional& opt, nullopt_t) noexcept +bool operator<(const optional& /*opt*/, nullopt_t) noexcept { return false; } @@ -331,7 +331,7 @@ bool operator>(const optional& opt, nullopt_t) noexcept } template -bool operator>=(const optional& opt, nullopt_t) noexcept +bool operator>=(const optional& /*opt*/, nullopt_t) noexcept { return true; } @@ -355,13 +355,13 @@ bool operator<(nullopt_t, const optional& opt) noexcept } template -bool operator<=(nullopt_t, const optional& opt) noexcept +bool operator<=(nullopt_t, const optional& /*opt*/) noexcept { return true; } template -bool operator>(nullopt_t, const optional& opt) noexcept +bool operator>(nullopt_t, const optional& /*opt*/) noexcept { return false; } -- cgit v0.12