From bcfec4ad74e1ce6304ebcecde1f407d58687d98a Mon Sep 17 00:00:00 2001 From: Anton Maklakov Date: Sat, 29 Jan 2022 17:18:07 +0700 Subject: [PATCH] bluedroid: suppress some -Waddress-of-packed-member warnings --- components/bt/CMakeLists.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/components/bt/CMakeLists.txt b/components/bt/CMakeLists.txt index 5c19866e8d..57bba0b881 100644 --- a/components/bt/CMakeLists.txt +++ b/components/bt/CMakeLists.txt @@ -673,6 +673,13 @@ if(CONFIG_BT_ENABLED) target_link_libraries(${COMPONENT_LIB} PRIVATE nimblelib) endif() + + set_source_files_properties( + "host/bluedroid/bta/gatt/bta_gattc_act.c" + "host/bluedroid/bta/gatt/bta_gattc_cache.c" + "host/bluedroid/btc/profile/std/gatt/btc_gatt_util.c" + "host/bluedroid/btc/profile/std/gatt/btc_gatts.c" + PROPERTIES COMPILE_FLAGS -Wno-address-of-packed-member) endif() if(CONFIG_BT_NIMBLE_MESH)