!898 解决编译告警

Merge pull request !898 from Mupceet/init0701
This commit is contained in:
openharmony_ci 2022-07-04 07:42:12 +00:00 committed by Gitee
commit a1ff4111ee
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
3 changed files with 4 additions and 4 deletions

View File

@ -111,7 +111,7 @@ typedef struct {
typedef struct {
BaseTask base;
int events;
uint32_t events;
ProcessWatchEvent processEvent;
} WatcherTask;
@ -134,4 +134,4 @@ int CheckTaskFlags(const BaseTask *task, uint32_t flags);
#endif
#endif
#endif
#endif

View File

@ -108,7 +108,7 @@ cJSON *MakeSandboxJson(const char *sandboxFileName, const int MODE)
// assemble mount-bind-paths items
// Append items to mount-bind-paths
for (int i = 0; i < (sizeof(APP_PATHS) / sizeof(char *)); i++) {
for (size_t i = 0; i < (sizeof(APP_PATHS) / sizeof(char *)); i++) {
cJSON_AddItemToArray(mJsonMtBdPth, mJsonMtBdPth_Itm = cJSON_CreateObject());
int MOUNT_FLAG_COUNT = 2;
if (MODE != NULL_MOUNT_ITEM) {

View File

@ -142,7 +142,7 @@ static const DYNAMIC_DEVICE_NODE dynamicDevices[] = {
static void HandleRequiredDynamicDeviceNodes(const struct Uevent *uevent)
{
mode_t mask;
int idx = 0;
size_t idx = 0;
if (uevent->deviceName == NULL) {
return;