diff --git a/AK/BinarySearch.h b/AK/BinarySearch.h index b8defdacb4a..f5e8f666cf3 100644 --- a/AK/BinarySearch.h +++ b/AK/BinarySearch.h @@ -13,7 +13,7 @@ namespace AK { struct DefaultComparator { template - constexpr int operator()(T& lhs, S& rhs) + [[nodiscard]] constexpr int operator()(T& lhs, S& rhs) { if (lhs > rhs) return 1;