Skip to content

Commit

Permalink
Fix based on clang feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
andy31415 committed Jan 13, 2025
1 parent 217be3a commit c660c1b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/data-model-providers/codegen/CodegenDataModelProvider.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,12 +84,12 @@ CHIP_ERROR FetchAcceptedCommands(const ConcreteClusterPath & path, const EmberAf

if (err == CHIP_NO_ERROR)
{
typedef struct
using EnumerationData = struct
{
ConcreteCommandPath commandPath;
DataModel::MetadataList<DataModel::AcceptedCommandEntry> acceptedCommandList;
CHIP_ERROR processingError;
} EnumerationData;
};

EnumerationData enumerationData;
enumerationData.commandPath = ConcreteCommandPath(path.mEndpointId, path.mClusterId, kInvalidCommandId);
Expand Down Expand Up @@ -170,11 +170,11 @@ CHIP_ERROR FetchGeneratedCommands(const ConcreteClusterPath & path, const EmberA
{
ReturnErrorOnFailure(result.reserve(commandCount));

typedef struct
using EnumerationData = struct
{
DataModel::MetadataList<CommandId> generatedCommandList;
CHIP_ERROR processingError;
} EnumerationData;
};
EnumerationData enumerationData;
enumerationData.processingError = CHIP_NO_ERROR;

Expand Down

0 comments on commit c660c1b

Please sign in to comment.