1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-14 09:24:57 +00:00

Lagom+AK: Remove remains of clang -Wconsumed usage

We stopped using that warning ages ago since it confused the compiler.
This commit is contained in:
Andreas Kling 2021-01-28 09:14:49 +01:00
parent a0bcfa30bf
commit 7ec8f83a7f
2 changed files with 1 additions and 8 deletions

View file

@ -75,18 +75,11 @@ constexpr T ceil_div(T a, U b)
return result;
}
#ifdef __clang__
# pragma clang diagnostic push
# pragma clang diagnostic ignored "-Wconsumed"
#endif
template<typename T>
constexpr T&& move(T& arg)
{
return static_cast<T&&>(arg);
}
#ifdef __clang__
# pragma clang diagnostic pop
#endif
template<typename T, typename U>
inline void swap(T& a, U& b)