Qt: Promote -Wnarrowing to an error

This commit is contained in:
Vicki Pfau 2023-05-01 22:27:16 -07:00
parent ac9ffdd765
commit 608029e930
1 changed files with 1 additions and 1 deletions

View File

@ -64,7 +64,7 @@ if(APPLE)
endif()
if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-deprecated-declarations")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-deprecated-declarations -Werror=narrowing")
endif()
get_target_property(QT_TYPE ${QT}::Core TYPE)