Skip to content

Commit

Permalink
Fix note message from gcc about uninitialized member (#28366)
Browse files Browse the repository at this point in the history
After change to c++17, on Tizen, we've got a note message from gcc about
uninitialized member of ChipError class in a lambda function. This is a
false positive report, but by initializing CHIP_ERROR variable we can
get rid of it and get a clean build once again.
  • Loading branch information
arkq authored and pull[bot] committed Aug 29, 2023
1 parent 067f6fb commit 1308032
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ CHIP_ERROR AccessControlAttribute::ReadAcl(AttributeValueEncoder & aEncoder)
{
auto fabric = info.GetFabricIndex();
ReturnErrorOnFailure(GetAccessControl().Entries(fabric, iterator));
CHIP_ERROR err;
CHIP_ERROR err = CHIP_NO_ERROR;
while ((err = iterator.Next(entry)) == CHIP_NO_ERROR)
{
ReturnErrorOnFailure(encoder.Encode(encodableEntry));
Expand Down

0 comments on commit 1308032

Please sign in to comment.