mirror of
https://github.com/espressif/openthread.git
synced 2026-08-01 08:37:47 +00:00
[srp-server] fix clang-tidy warnings (#6822)
- enable SRP server in clang-tidy check - remove static member access through instance
This commit is contained in:
@@ -114,6 +114,7 @@ readonly OT_CLANG_TIDY_BUILD_OPTS=(
|
||||
'-DOT_SLAAC=ON'
|
||||
'-DOT_SNTP_CLIENT=ON'
|
||||
'-DOT_SRP_CLIENT=ON'
|
||||
'-DOT_SRP_SERVER=ON'
|
||||
'-DOT_THREAD_VERSION=1.2'
|
||||
'-DOT_TREL=ON'
|
||||
'-DOT_COVERAGE=ON'
|
||||
|
||||
@@ -1853,7 +1853,7 @@ Server::UpdateMetadata *Server::UpdateMetadata::New(Instance & aIn
|
||||
void * buf;
|
||||
UpdateMetadata *update = nullptr;
|
||||
|
||||
buf = aInstance.HeapCAlloc(1, sizeof(UpdateMetadata));
|
||||
buf = Instance::HeapCAlloc(1, sizeof(UpdateMetadata));
|
||||
VerifyOrExit(buf != nullptr);
|
||||
|
||||
update = new (buf) UpdateMetadata(aInstance, aHeader, aHost, aMessageInfo);
|
||||
|
||||
Reference in New Issue
Block a user