Explorar el Código

video_core: Enforce C4244

Enforce implicit integer casts to a smaller type as errors.
ReinUsesLisp hace 5 años
padre
commit
03abe8bf85
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      src/video_core/CMakeLists.txt

+ 1 - 0
src/video_core/CMakeLists.txt

@@ -293,6 +293,7 @@ endif()
 if (MSVC)
 if (MSVC)
     target_compile_options(video_core PRIVATE
     target_compile_options(video_core PRIVATE
         /we4267 # 'var' : conversion from 'size_t' to 'type', possible loss of data
         /we4267 # 'var' : conversion from 'size_t' to 'type', possible loss of data
+        /we4244 # 'var' : conversion from integer to 'type', possible loss of data
         /we4456 # Declaration of 'identifier' hides previous local declaration
         /we4456 # Declaration of 'identifier' hides previous local declaration
         /we4457 # Declaration of 'identifier' hides function parameter
         /we4457 # Declaration of 'identifier' hides function parameter
         /we4458 # Declaration of 'identifier' hides class member
         /we4458 # Declaration of 'identifier' hides class member