From b4f9522fab19226eae22b3ac7dd54b30d79f9dd4 Mon Sep 17 00:00:00 2001 From: hong Date: Sat, 6 Aug 2022 16:09:58 +0800 Subject: [PATCH] fix warning: declaration of 'ret' shadows a previous local Signed-off-by: hong --- services/param/liteos/param_hal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/param/liteos/param_hal.c b/services/param/liteos/param_hal.c index 511921ab..f10b38ba 100644 --- a/services/param/liteos/param_hal.c +++ b/services/param/liteos/param_hal.c @@ -142,7 +142,7 @@ static int LoadPersistParam(void) while (currLen < fileSize) { if (buffer[currLen] == '\n') { // split line buffer[currLen] = '\0'; - int ret = SplitParamString(buffer, NULL, 0, LoadOnePersistParam_, NULL); + ret = SplitParamString(buffer, NULL, 0, LoadOnePersistParam_, NULL); PARAM_CHECK(ret == 0, continue, "Failed to set param %d %s", ret, buffer); paramNum++; } -- GitLab