Skip to content

Commit

Permalink
disable some optimization/inlining warnings in MSVC
Browse files Browse the repository at this point in the history
  • Loading branch information
Neverous committed Aug 27, 2023
1 parent 90a9684 commit a7552bd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,10 @@ if(WIN32)
target_compile_options(${PROJECT_NAME} PRIVATE
# C4371: 'classname': layout of class may have changed from a previous version of the compiler due to better packing of member 'member'
/wd4371
# C4710: 'function' : function not inlined
/wd4710 # Needed for RELEASE builds
# C4711: function 'function' selected for inline expansion
/wd4711 # Needed for RELEASE builds
# C4820: 'bytes' bytes padding added after construct 'member_name'
/wd4820
# C4866: compiler may not enforce left-to-right evaluation order for call to 'C++17 operator'
Expand Down

0 comments on commit a7552bd

Please sign in to comment.