Skip to content
This repository was archived by the owner on Dec 20, 2023. It is now read-only.

Commit f8d6d36

Browse files
committed
Address -Wunused-function, -Wsign-compare, and -Wvarargs warnings.
1 parent 8dd8c61 commit f8d6d36

File tree

1 file changed

+7
-23
lines changed

1 file changed

+7
-23
lines changed

src/test-apps/TestDataManagement.cpp

Lines changed: 7 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -151,12 +151,12 @@ static OptionSet *gToolOptionSets[] =
151151
} \
152152
} while (0)
153153

154-
WEAVE_ERROR ValidatePath(TLVReader &aReader,
155-
const uint64_t &aTag,
156-
uint32_t aProfileId,
157-
const uint64_t &aInstanceId,
158-
uint16_t aPathLen,
159-
...)
154+
static WEAVE_ERROR ValidatePath(TLVReader &aReader,
155+
const uint64_t &aTag,
156+
uint32_t aProfileId,
157+
const uint64_t &aInstanceId,
158+
uint32_t aPathLen,
159+
...)
160160
{
161161
WEAVE_ERROR err;
162162

@@ -237,7 +237,7 @@ WEAVE_ERROR ValidatePath(TLVReader &aReader,
237237

238238
// now, the residual path elements, if any
239239

240-
for (int i = 0; i < aPathLen; i++)
240+
for (uint32_t i = 0; i < aPathLen; i++)
241241
{
242242
err = aReader.Next();
243243
SuccessOrExit(err);
@@ -276,22 +276,6 @@ WEAVE_ERROR ValidatePath(TLVReader &aReader,
276276
return err;
277277
}
278278

279-
/*
280-
* one day we might want to include the other form of instance ID
281-
* in testing. for now just leave this as a placeholder.
282-
*/
283-
284-
WEAVE_ERROR ValidatePath(nl::Weave::TLV::TLVReader &aReader,
285-
const uint64_t &aTag,
286-
uint32_t aProfileId,
287-
uint32_t aInstanceIdLen,
288-
uint8_t *aInstanceId,
289-
uint16_t aPathLen,
290-
...)
291-
{
292-
return WEAVE_NO_ERROR;
293-
}
294-
295279
/*
296280
* in order to use the "new improved" data management, we have to create
297281
* a sub-class of the WDM client and supply the relevant methods as follows.

0 commit comments

Comments
 (0)