From 81767f85dd42abcbb1fb6f5673d09955d03ac934 Mon Sep 17 00:00:00 2001 From: zhouxiongjia <719216473@qq.com> Date: Mon, 4 Jan 2021 14:53:55 +0800 Subject: [PATCH] resolve compile warning --- src/include/utils/elog.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/include/utils/elog.h b/src/include/utils/elog.h index d37fa4ec3..d25944505 100755 --- a/src/include/utils/elog.h +++ b/src/include/utils/elog.h @@ -276,7 +276,7 @@ typedef struct ErrorContextCallback { #define securec_check(errno, charList, ...) \ { \ if (EOK != errno) { \ - freeSecurityFuncSpace(charList, ##__VA_ARGS__); \ + freeSecurityFuncSpace((char*)charList, ##__VA_ARGS__); \ switch (errno) { \ case EINVAL: \ elog(ERROR, \ @@ -321,7 +321,7 @@ typedef struct ErrorContextCallback { #define securec_check(errno, charList, ...) \ { \ if (errno == -1) { \ - freeSecurityFuncSpace_c((char*)charList, ##__VA_ARGS__); \ + freeSecurityFuncSpace_c((char*)charList, ##__VA_ARGS__); \ printf("ERROR at %s : %d : The destination buffer or format is a NULL pointer or the invalid parameter " \ "handle is invoked..\n", \ __FILE__, \ @@ -336,7 +336,7 @@ typedef struct ErrorContextCallback { #define securec_check_ss(errno, charList, ...) \ { \ if (errno == -1) { \ - freeSecurityFuncSpace(charList, ##__VA_ARGS__); \ + freeSecurityFuncSpace((char*)charList, ##__VA_ARGS__); \ elog(ERROR, \ "%s : %d : The destination buffer or format is a NULL pointer or the invalid parameter handle is " \ "invoked.", \