Everywhere: Add -Wformat=2 to build

This commit is contained in:
Sahan Fernando 2020-12-26 18:42:36 +11:00 committed by Andreas Kling
parent d780e2265d
commit e665ad92af
Notes: sideshowbarker 2024-07-19 00:35:49 +09:00

View file

@ -46,7 +46,7 @@ set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)
add_compile_options(-Wno-unknown-warning-option -Wall -Wextra -Werror -Wmissing-declarations -fdiagnostics-color=always -ftls-model=initial-exec)
add_compile_options(-Wno-unknown-warning-option -Wall -Wextra -Werror -Wmissing-declarations -Wformat=2 -fdiagnostics-color=always -ftls-model=initial-exec)
if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
add_compile_options(-fconcepts)