1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 23:37:36 +00:00

Userland: Make bit-fields compatible with MSVC C++ ABI

This commit is contained in:
Dan Klishch 2023-11-03 23:59:15 -04:00 committed by Andrew Kaster
parent 00928764e9
commit 96d44b1572
5 changed files with 30 additions and 11 deletions

View file

@ -16,6 +16,10 @@ add_compile_options(-fno-exceptions)
add_compile_options(-ffp-contract=off)
if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang" AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL "18")
add_compile_options(-Wpadded-bitfield)
endif()
if (NOT CMAKE_HOST_SYSTEM_NAME MATCHES SerenityOS)
# FIXME: Something makes this go crazy and flag unused variables that aren't flagged as such when building with the toolchain.
# Disable -Werror for now.