From 261c4d3e7274c7879944198ea26049d324673b66 Mon Sep 17 00:00:00 2001 From: Mateusz Jablonski Date: Wed, 13 Dec 2023 11:13:33 +0000 Subject: [PATCH] refactor: add NOLINT for hardware info padding warning Signed-off-by: Mateusz Jablonski --- shared/source/helpers/hw_info.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/shared/source/helpers/hw_info.h b/shared/source/helpers/hw_info.h index a2f81ca1cc..783b368d89 100644 --- a/shared/source/helpers/hw_info.h +++ b/shared/source/helpers/hw_info.h @@ -137,7 +137,7 @@ inline bool operator==(const RuntimeCapabilityTable &lhs, const RuntimeCapabilit return result; } -struct HardwareInfo { +struct HardwareInfo { // NOLINT(clang-analyzer-optin.performance.Padding) HardwareInfo() = default; HardwareInfo(const PLATFORM *platform, const FeatureTable *featureTable, const WorkaroundTable *workaroundTable, const GT_SYSTEM_INFO *gtSystemInfo, const RuntimeCapabilityTable &capabilityTable); @@ -148,7 +148,6 @@ struct HardwareInfo { alignas(4) GT_SYSTEM_INFO gtSystemInfo{}; alignas(8) RuntimeCapabilityTable capabilityTable{}; alignas(8) HardwareIpVersion ipVersion{}; - uint8_t reserved[4]{}; // to keep optimal alignment }; // Global table of hardware prefixes