modify warning

Signed-off-by: zjucx <chengxiang4@huawei.com>
This commit is contained in:
zjucx
2022-01-24 15:19:27 +08:00
parent 9c14ba5edc
commit f0d264a74f
4 changed files with 1 additions and 7 deletions
@@ -119,7 +119,6 @@ HWTEST_F(FamgrTest, StartRemoteAbility_002, TestSize.Level1) {
}
StartRemoteAbility(&want, nullptr, nullptr);
auto onTlvParseDone = [] (int8_t errCode, const void *dmsMsg) {
const TlvNode *tlvHead = reinterpret_cast<const TlvNode *>(dmsMsg);
EXPECT_NE(errCode, DMS_TLV_SUCCESS);
};
RunTest((const uint8_t *)GetPacketBufPtr(), GetPacketSize(), onTlvParseDone, nullptr);
@@ -39,8 +39,6 @@ const char FOUNDATION_APPID[] = "foundation_signature";
const char PREFIX[] = "uid_";
const char SUFFIX[] = "_appid";
const char LAUNCHER_BUNDLE_NAME[] = "com.test.launcher";
const char LAUNCHER_APPID[] = "com.test.launcher_BM70W1/aVSbkx+uI/WT/mO9NqmtEBx9esLAogYAid75/gTMpKWqrNUT5hS9Cj"
"Bq6kt1OcxgZzdCJ4HuVyS4dP8w=";
#endif
}
-4
View File
@@ -212,10 +212,6 @@ static uint64_t ConvertIntLittle2Big(const uint8_t *dataIn, uint8_t typeSize)
static bool MarshallInt(uint64_t field, FieldType fieldType, uint8_t fieldSize)
{
if (g_buffer == NULL) {
return false;
}
if (g_counter + (TYPE_FILED_LENGTH + MAX_BYTE_NUM + fieldSize) > PACKET_DATA_SIZE) {
HILOGE("MarshallInt field is too big to fit");
return false;
+1
View File
@@ -24,6 +24,7 @@
#include "bundle_manager.h"
#else
#include "bundle_inner_interface.h"
#include "bundle_manager.h"
#endif
#include "dmslite_log.h"
#include "dmslite_utils.h"