mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-03-23 05:46:06 +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:
@@ -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)
|
||||
|
||||
@@ -9,7 +9,7 @@ endif()
|
||||
|
||||
|
||||
if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wconsumed -Wno-overloaded-virtual")
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-overloaded-virtual")
|
||||
|
||||
if (ENABLE_ADDRESS_SANITIZER)
|
||||
add_definitions(-fsanitize=address -fno-omit-frame-pointer)
|
||||
|
||||
Reference in New Issue
Block a user