mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-21 03:55:24 +00:00
Meta: Enable -Wmissing-declarations
Concludes #3096. Phew! From here on, build system and CI will ensure that all new code defines compilation-unit-only code as 'static', and that dead code can be found more easily. Also, this style encourages type checking by suggesting that you put a proper declaration in a shared header.
This commit is contained in:
parent
d063dc1e71
commit
1d638c6a78
Notes:
sideshowbarker
2024-07-19 03:04:41 +09:00
Author: https://github.com/BenWiederhake Commit: https://github.com/SerenityOS/serenity/commit/1d638c6a787 Pull-request: https://github.com/SerenityOS/serenity/pull/3326
1 changed files with 1 additions and 1 deletions
|
@ -40,7 +40,7 @@ add_custom_target(check-style
|
|||
USES_TERMINAL
|
||||
)
|
||||
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -Werror -std=c++2a -fdiagnostics-color=always")
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -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")
|
||||
elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
|
||||
|
|
Loading…
Add table
Reference in a new issue