compiler
compiler copied to clipboard
make 时报错了,寻求协助,谢谢;
/Volumes/Media/Jiachao/Sites/C/compiler/src/aes.h:53:58: note: passing argument to parameter 'key' here
void AES_init_ctx_iv(struct AES_ctx* ctx, const uint8_t* key, const uint8_t* iv);
^
/Volumes/Media/Jiachao/Sites/C/compiler/src/compiler.c:97:36: warning: passing 'char [24]' to parameter of type 'const uint8_t ' (aka 'const unsigned char ') converts between pointers to integer types with different sign [-Wpointer-sign]
AES_init_ctx_iv(&ctx, AES_KEY, AES_IV_KEY);
^~~~~~~~~~
/Volumes/Media/Jiachao/Sites/C/compiler/src/config.h:2:20: note: expanded from macro 'AES_IV_KEY'
#define AES_IV_KEY "sdmkr3y8rfohsndjkry3289"
^~~~~~~~~~~~~~~~~~~~~~~~~
/Volumes/Media/Jiachao/Sites/C/compiler/src/aes.h:53:78: note: passing argument to parameter 'iv' here
void AES_init_ctx_iv(struct AES_ctx ctx, const uint8_t key, const uint8_t* iv);
^
/Volumes/Media/Jiachao/Sites/C/compiler/src/compiler.c:99:32: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign]
encrypt_len = PKCS7Cutting(pkcs7,encrypt_len);
^~~~~
/Volumes/Media/Jiachao/Sites/C/compiler/src/pkcs7.h:15:24: note: passing argument to parameter 'p' here
int PKCS7Cutting(char *p, int plen);
^
/Volumes/Media/Jiachao/Sites/C/compiler/src/compiler.c:100:49: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]
zend_string *eval_string = zend_string_init(pkcs7,encrypt_len,0);
^~~~~
/usr/local/Cellar/[email protected]/7.4.25/include/php/Zend/zend_string.h:155:69: note: passing argument to parameter 'str' here
static zend_always_inline zend_string *zend_string_init(const char *str, size_t len, int persistent)
^
/Volumes/Media/Jiachao/Sites/C/compiler/src/compiler.c:104:11: warning: initializing 'char *' with an expression of type 'const char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
char *filename = zend_get_executed_filename();
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Volumes/Media/Jiachao/Sites/C/compiler/src/compiler.c:135:36: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]
eval_string = zend_string_init(raw_string,raw_string_len,0);
^~~~~~~~~~
/usr/local/Cellar/[email protected]/7.4.25/include/php/Zend/zend_string.h:155:69: note: passing argument to parameter 'str' here
static zend_always_inline zend_string *zend_string_init(const char *str, size_t len, int persistent)
^
/Volumes/Media/Jiachao/Sites/C/compiler/src/compiler.c:138:11: warning: initializing 'char *' with an expression of type 'const char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
char *filename = zend_get_executed_filename();
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Volumes/Media/Jiachao/Sites/C/compiler/src/compiler.c:160:9: error: implicit declaration of function 'zend_vm_set_opcode_handler' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
zend_vm_set_opcode_handler(orig_opline);
^
/Volumes/Media/Jiachao/Sites/C/compiler/src/compiler.c:163:9: error: implicit declaration of function 'zend_vm_set_opcode_handler' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
zend_vm_set_opcode_handler(orig_opline);
^
15 warnings and 5 errors generated.