resolve compile warning

This commit is contained in:
zhouxiongjia
2021-01-04 14:53:55 +08:00
parent 5bce12f426
commit 81767f85dd

View File

@ -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.", \