Merge pull request !1395 from 杨欢欢/warn
This commit is contained in:
openharmony_ci 2024-11-07 15:30:09 +00:00 committed by Gitee
commit 7c95a82b9e
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 4 additions and 2 deletions

View File

@ -29,7 +29,8 @@ namespace Hks {
int DoSomethingInterestingWithMyAPI(uint8_t *data, size_t size)
{
if (data == nullptr || size < sizeof(uint64_t)) {
(void)size;
if (data == nullptr) {
return -1;
}

View File

@ -29,7 +29,8 @@ namespace Hks {
int DoSomethingInterestingWithMyAPI(uint8_t *data, size_t size)
{
if (data == nullptr || size < sizeof(uint32_t)) {
(void)size;
if (data == nullptr) {
return -1;
}