Skip to content

Commit

Permalink
Merge pull request #5101 from DFHack/ab9rf-enable-c5038
Browse files Browse the repository at this point in the history
enable C5038 for MSVC
  • Loading branch information
myk002 authored Dec 18, 2024
2 parents fcc83fe + c0bc43d commit 6abab0a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,9 @@ if(MSVC)
# this is equivalent to gcc -Wno_conversions which is the default as gcc -Wall doesn't enable -Wconversions
add_compile_options("/wd4244")

# Enable C5038 - This is equivalent to gcc's -Werror=reorder, which is enabled by default by gcc -Wall
add_compile_options("/w15038")

# MSVC panics if an object file contains more than 65,279 sections. this
# happens quite frequently with code that uses templates, such as vectors.
add_compile_options("/bigobj")
Expand Down

0 comments on commit 6abab0a

Please sign in to comment.