diff --git a/interfaces/innerkits/syspara/param_comm.c b/interfaces/innerkits/syspara/param_comm.c index ffca3c38f1db5ec1687870488838df7bd8fdd607..f89d7b0920e8c721809d4cb760f9dd4f68255836 100644 --- a/interfaces/innerkits/syspara/param_comm.c +++ b/interfaces/innerkits/syspara/param_comm.c @@ -57,7 +57,6 @@ INIT_LOCAL_API int GetSystemError(int err) default: return SYSPARAM_SYSTEM_ERROR; } - return 0; } INIT_LOCAL_API int IsValidParamValue(const char *value, uint32_t len) diff --git a/services/log/init_log.c b/services/log/init_log.c index 59004dec44f780e32760201e957b1014d896db8c..8942e6bdcfd59b5dc59050a40b99ec33321a8d80 100644 --- a/services/log/init_log.c +++ b/services/log/init_log.c @@ -164,6 +164,6 @@ INIT_LOCAL_API void EnableInitLogFromCmdline(void) errno = 0; unsigned int logLevel = (unsigned int)strtoul(level, 0, 10); // 10 is decimal INIT_INFO_CHECK(errno == 0, return, "Failed strtoul %s, err=%d", level, errno); - SetInitLogLevel(logLevel); + SetInitLogLevel((InitLogLevel)logLevel); return; }