mirror of
https://github.com/citra-emu/citra.git
synced 2024-12-18 15:50:03 +00:00
CMakeLists: Enforce C4267 on MSVC
This commit is contained in:
parent
adcc786ef2
commit
77ce1c8f14
@ -33,7 +33,6 @@ if (MSVC)
|
|||||||
# /Zc:throwingNew - Let codegen assume `operator new` (without std::nothrow) will never return null
|
# /Zc:throwingNew - Let codegen assume `operator new` (without std::nothrow) will never return null
|
||||||
# /external:* - Suppress warnings from external headers
|
# /external:* - Suppress warnings from external headers
|
||||||
add_compile_options(
|
add_compile_options(
|
||||||
/W3
|
|
||||||
/MP
|
/MP
|
||||||
/permissive-
|
/permissive-
|
||||||
/EHsc
|
/EHsc
|
||||||
@ -45,6 +44,10 @@ if (MSVC)
|
|||||||
/external:I "${CMAKE_SOURCE_DIR}/externals"
|
/external:I "${CMAKE_SOURCE_DIR}/externals"
|
||||||
/external:anglebrackets
|
/external:anglebrackets
|
||||||
/external:W0
|
/external:W0
|
||||||
|
|
||||||
|
# Warnings
|
||||||
|
/W3
|
||||||
|
/we4267 # 'var': conversion from 'size_t' to 'type', possible loss of data
|
||||||
)
|
)
|
||||||
|
|
||||||
# Since MSVC's debugging information is not very deterministic, so we have to disable it
|
# Since MSVC's debugging information is not very deterministic, so we have to disable it
|
||||||
|
Loading…
Reference in New Issue
Block a user