mirror of https://github.com/mgba-emu/mgba.git
Qt: Promote -Wnarrowing to an error
This commit is contained in:
parent
ac9ffdd765
commit
608029e930
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue