resolve compile warning
This commit is contained in:
@ -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.", \
|
||||
|
Reference in New Issue
Block a user