Skip to content

Commit

Permalink
Fix note message from gcc about uninitialized member
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 committed Jul 28, 2023
1 parent 5dd4b06 commit e5897c2
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 e5897c2

Please sign in to comment.