Skip to content

Commit

Permalink
Disable additional MSVC warnings
Browse files Browse the repository at this point in the history
Append additional MSVC warnings to `MSVC_DISABLED_WARNINGS_LIST`.
  • Loading branch information
donny-dont committed Nov 13, 2024
1 parent a59cc93 commit 84e5807
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -162,18 +162,25 @@ if(MSVC)
set(MSVC_DISABLED_WARNINGS_LIST
"C4018" # 'expression' : signed/unsigned mismatch
"C4057" # 'operator' : 'identifier1' indirection to
# slightly different base types from 'identifier2'
# slightly different base types from 'identifier2'
"C4098" # 'function' : void function returning a value
"C4100" # 'identifier' : unreferenced formal parameter
"C4127" # conditional expression is constant
"C4132" # 'object' : const object should be initialized
"C4146" # unary minus operator applied to unsigned type,
# result still unsigned
"C4206" # nonstandard extension used : translation unit is empty
"C4244" # 'argument' : conversion from 'type1' to 'type2',
# possible loss of data
"C4245" # 'conversion' : conversion from 'type1' to 'type2',
# signed/unsigned mismatch
"C4267" # 'var' : conversion from 'size_t' to 'type',
# possible loss of data
"C4295" # 'array' : array is too small to include a terminating
# null character
"C4389" # 'operator' : signed/unsigned mismatch
"C4701" # Potentially uninitialized local variable 'name' used
"C4702" # unreachable code
"C4706" # assignment within conditional expression
"C4996" # The POSIX name for this item is deprecated.
# Instead, use the ISO C and C++ conformant name
Expand Down

0 comments on commit 84e5807

Please sign in to comment.