From de0e791c5b246c05503e3860508d36a2e0d74bb6 Mon Sep 17 00:00:00 2001 From: Michael Fabian 'Xaymar' Dirks Date: Sun, 18 Sep 2022 18:30:41 +0200 Subject: [PATCH] cmake: Disable pointless structure padding warning --- CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 9fe7672ddd..1f83aebcee 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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 @@ -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}")