Skip to content

Commit

Permalink
Fix clang warnings -Wmissing-braces (#17867)
Browse files Browse the repository at this point in the history
../../third_party/connectedhomeip/src/platform/nxp/k32w/k32w0/BLEManagerImpl.cpp:789:63: error: suggest braces around initialization of subobject [-Werror,-Wmissing-braces]
    gapAdStructure_t adv_data[BLEKW_ADV_MAX_NO]           = { 0 };
                                                              ^
                                                              {}
../../third_party/connectedhomeip/src/platform/nxp/k32w/k32w0/BLEManagerImpl.cpp:790:63: error: suggest braces around initialization of subobject [-Werror,-Wmissing-braces]
    gapAdStructure_t scan_rsp_data[BLEKW_SCAN_RSP_MAX_NO] = { 0 };
                                                              ^
                                                              {}
2 errors generated.
  • Loading branch information
mspang authored and pull[bot] committed Feb 8, 2024
1 parent 1641704 commit 3772851
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/platform/nxp/k32w/k32w0/BLEManagerImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -786,8 +786,8 @@ CHIP_ERROR BLEManagerImpl::ConfigureAdvertisingData(void)
uint16_t discriminator;
uint16_t advInterval = 0;
gapAdvertisingData_t adv = { 0 };
gapAdStructure_t adv_data[BLEKW_ADV_MAX_NO] = { 0 };
gapAdStructure_t scan_rsp_data[BLEKW_SCAN_RSP_MAX_NO] = { 0 };
gapAdStructure_t adv_data[BLEKW_ADV_MAX_NO] = { { 0 } };
gapAdStructure_t scan_rsp_data[BLEKW_SCAN_RSP_MAX_NO] = { { 0 } };
uint8_t advPayload[BLEKW_MAX_ADV_DATA_LEN] = { 0 };
gapScanResponseData_t scanRsp = { 0 };
gapAdvertisingParameters_t adv_params = { 0 };
Expand Down

0 comments on commit 3772851

Please sign in to comment.