From 9bcb80eca6f5424e5f95f568faa5daabd04cb309 Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Thu, 18 Jul 2024 09:40:23 +1000 Subject: [PATCH] warnings: disable alignment warnings due to our use of packed structures --- nc_warnings.cmake | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/nc_warnings.cmake b/nc_warnings.cmake index 28cdfc8..7f2fbd9 100644 --- a/nc_warnings.cmake +++ b/nc_warnings.cmake @@ -157,3 +157,7 @@ if (ADVISORY) append_compile_flag(-Wpadded) endif() + +# WIP: disable alignment checks for the time being because we use a lot of packed structures that trigger this +append_compile_flag(-Wno-packed-not-aligned) +append_compile_flag(-Wno-unaligned-access)