From 0b0c7c88ee965ce50ac74a49ab516ccf326d0dc0 Mon Sep 17 00:00:00 2001 From: Thad House Date: Tue, 3 Sep 2024 12:31:38 -0700 Subject: [PATCH] [build] cmake: Add 4324 to ignored MSVC warnings (#7028) 4324 is issued at /W4 if alignas forces padding. Makes it impossible to use SmallVector from something compiled in /W4. Add it to the warning exclusion list. --- cmake/modules/CompileWarnings.cmake | 1 + 1 file changed, 1 insertion(+) diff --git a/cmake/modules/CompileWarnings.cmake b/cmake/modules/CompileWarnings.cmake index 432c810ca9..7439333bad 100644 --- a/cmake/modules/CompileWarnings.cmake +++ b/cmake/modules/CompileWarnings.cmake @@ -21,6 +21,7 @@ macro(wpilib_target_warnings target) /wd4244 /wd4251 /wd4267 + /wd4324 /WX /D_CRT_SECURE_NO_WARNINGS ${WPILIB_TARGET_WARNINGS}