Skip to content

Commit

Permalink
cmake: Disable pointless structure padding warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Xaymar committed Sep 18, 2022
1 parent 6e86a7a commit de0e791
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (C) 2017 Michael Fabian Dirks
# Copyright (C) 2017-2022 Michael Fabian Dirks
# Copyright (C) 2022 Romain Vigier
#
# This program is free software; you can redistribute it and/or modify
Expand Down Expand Up @@ -1780,6 +1780,8 @@ if(D_PLATFORM_WINDOWS AND ((CMAKE_CXX_COMPILER_ID STREQUAL "MSVC") OR (CMAKE_CXX
"4710"
# Ignore Spectre mitigation insertions
"5045"
# Ignore inserted padding.
"4324"
)
foreach(WARN ${DISABLED_WARNINGS})
target_compile_options(${PROJECT_NAME} PRIVATE "/wd${WARN}")
Expand Down

0 comments on commit de0e791

Please # to comment.