mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-25 00:50:22 +00:00
Meta: Enable gcc warning about struct vs. class
I know, the tags don't actually matter. However, clang warns by default, and instead of disabling the warning for clang I'd rather enable the warning for gcc.
This commit is contained in:
parent
0d79e57c4d
commit
d25860f53c
Notes:
sideshowbarker
2024-07-19 02:44:17 +09:00
Author: https://github.com/BenWiederhake Commit: https://github.com/SerenityOS/serenity/commit/d25860f53c7 Pull-request: https://github.com/SerenityOS/serenity/pull/3464
1 changed files with 1 additions and 1 deletions
|
@ -42,7 +42,7 @@ add_custom_target(check-style
|
|||
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-unknown-warning-option -Wall -Wextra -Werror -Wmissing-declarations -std=c++2a -fdiagnostics-color=always")
|
||||
if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fconcepts")
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fconcepts -Wmismatched-tags")
|
||||
elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-overloaded-virtual")
|
||||
endif()
|
||||
|
|
Loading…
Reference in a new issue