Skip to content

Commit

Permalink
disable one warning for MSVC
Browse files Browse the repository at this point in the history
  • Loading branch information
fsb4000 committed Aug 19, 2024
1 parent e077f30 commit 3492073
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 @@ -150,6 +150,10 @@ if (MSVC)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /W4")
add_definitions(-D_CRT_SECURE_NO_WARNINGS)

# Disable padding warning because we did it intentionally
# C4324: 'benchmark::State': structure was padded due to alignment specifier
add_cxx_compiler_flag(-wd4324)

if(BENCHMARK_ENABLE_WERROR)
add_cxx_compiler_flag(-WX)
endif()
Expand Down

0 comments on commit 3492073

Please sign in to comment.