rnpgp / php-rnp

PHP RNP extension repository
Other
5 stars 2 forks source link

Fix all build warnings #5

Closed remicollet closed 2 years ago

remicollet commented 2 years ago
In file included from /usr/include/php-zts/php/Zend/zend.h:32,
                 from /usr/include/php-zts/php/main/php.h:31,
                 from /dev/shm/BUILD/php-pecl-rnp-0.1.1/ZTS/rnp.c:34:
/dev/shm/BUILD/php-pecl-rnp-0.1.1/ZTS/rnp.c: In function 'zif_rnp_load_keys':
/usr/include/php-zts/php/Zend/zend_string.h:60:31: warning: pointer targets in passing argument 2 of 'rnp_input_from_memory' differ in signedness [-Wpointer-sign]
   60 | #define ZSTR_VAL(zstr)  (zstr)->val
      |                         ~~~~~~^~~~~
      |                               |
      |                               char *
/dev/shm/BUILD/php-pecl-rnp-0.1.1/ZTS/rnp.c:181:49: note: in expansion of macro 'ZSTR_VAL'
  181 |         ret = rnp_input_from_memory(&mem_input, ZSTR_VAL(input), ZSTR_LEN(input), false);
      |                                                 ^~~~~~~~
In file included from /dev/shm/BUILD/php-pecl-rnp-0.1.1/ZTS/php_rnp.h:7,
                 from /dev/shm/BUILD/php-pecl-rnp-0.1.1/ZTS/rnp.c:36:
/usr/include/rnp/rnp.h:2592:58: note: expected 'const uint8_t *' {aka 'const unsigned char *'} but argument is of type 'char *'
 2592 |                                            const uint8_t buf[],
      |                                            ~~~~~~~~~~~~~~^~~~~
In file included from /usr/include/php-zts/php/main/php.h:35,
                 from /dev/shm/BUILD/php-pecl-rnp-0.1.1/ZTS/rnp.c:34:
/dev/shm/BUILD/php-pecl-rnp-0.1.1/ZTS/rnp.c: In function 'zif_rnp_save_keys':
/dev/shm/BUILD/php-pecl-rnp-0.1.1/ZTS/rnp.c:269:65: warning: pointer targets in passing argument 2 of 'zend_try_assign_typed_ref_stringl' differ in signedness [-Wpointer-sign]
  269 |                         ZEND_TRY_ASSIGN_REF_STRINGL(output_ref, buf, len);
      |                                                                 ^~~
      |                                                                 |
      |                                                                 uint8_t * {aka unsigned char *}
/usr/include/php-zts/php/Zend/zend_API.h:1023:64: note: in definition of macro '_ZEND_TRY_ASSIGN_STRINGL'
 1023 |                         zend_try_assign_typed_ref_stringl(ref, string, len); \
      |                                                                ^~~~~~
/dev/shm/BUILD/php-pecl-rnp-0.1.1/ZTS/rnp.c:269:25: note: in expansion of macro 'ZEND_TRY_ASSIGN_REF_STRINGL'
  269 |                         ZEND_TRY_ASSIGN_REF_STRINGL(output_ref, buf, len);
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/php-zts/php/Zend/zend_API.h:792:89: note: expected 'const char *' but argument is of type 'uint8_t *' {aka 'unsigned char *'}
  792 | ZEND_API zend_result zend_try_assign_typed_ref_stringl(zend_reference *ref, const char *string, size_t len);
      |                                                                             ~~~~~~~~~~~~^~~~~~
In file included from /usr/include/php-zts/php/Zend/zend.h:27,
                 from /usr/include/php-zts/php/main/php.h:31,
                 from /dev/shm/BUILD/php-pecl-rnp-0.1.1/ZTS/rnp.c:34:
/dev/shm/BUILD/php-pecl-rnp-0.1.1/ZTS/rnp.c:269:65: warning: pointer targets in passing argument 1 of 'zend_string_init' differ in signedness [-Wpointer-sign]
  269 |                         ZEND_TRY_ASSIGN_REF_STRINGL(output_ref, buf, len);
      |                                                                 ^~~
      |                                                                 |
      |                                                                 uint8_t * {aka unsigned char *}
/usr/include/php-zts/php/Zend/zend_types.h:927:37: note: in definition of macro 'ZVAL_NEW_STR'
  927 |                 zend_string *__s = (s);                                 \
      |                                     ^
/usr/include/php-zts/php/Zend/zend_API.h:1029:9: note: in expansion of macro 'ZVAL_STRINGL'
 1029 |         ZVAL_STRINGL(_zv, string, len); \
      |         ^~~~~~~~~~~~
/usr/include/php-zts/php/Zend/zend_API.h:1037:9: note: in expansion of macro '_ZEND_TRY_ASSIGN_STRINGL'
 1037 |         _ZEND_TRY_ASSIGN_STRINGL(zv, string, len, 1); \
      |         ^~~~~~~~~~~~~~~~~~~~~~~~
/dev/shm/BUILD/php-pecl-rnp-0.1.1/ZTS/rnp.c:269:25: note: in expansion of macro 'ZEND_TRY_ASSIGN_REF_STRINGL'
  269 |                         ZEND_TRY_ASSIGN_REF_STRINGL(output_ref, buf, len);
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/php-zts/php/Zend/zend.h:32,
                 from /usr/include/php-zts/php/main/php.h:31,
                 from /dev/shm/BUILD/php-pecl-rnp-0.1.1/ZTS/rnp.c:34:
/usr/include/php-zts/php/Zend/zend_string.h:164:69: note: expected 'const char *' but argument is of type 'uint8_t *' {aka 'unsigned char *'}
  164 | static zend_always_inline zend_string *zend_string_init(const char *str, size_t len, bool persistent)
      |                                                         ~~~~~~~~~~~~^~~
/dev/shm/BUILD/php-pecl-rnp-0.1.1/ZTS/rnp.c: In function 'zif_rnp_dump_packets':
/usr/include/php-zts/php/Zend/zend_string.h:60:31: warning: pointer targets in passing argument 2 of 'rnp_input_from_memory' differ in signedness [-Wpointer-sign]
   60 | #define ZSTR_VAL(zstr)  (zstr)->val
      |                         ~~~~~~^~~~~
      |                               |
      |                               char *
/dev/shm/BUILD/php-pecl-rnp-0.1.1/ZTS/rnp.c:333:49: note: in expansion of macro 'ZSTR_VAL'
  333 |         ret = rnp_input_from_memory(&mem_input, ZSTR_VAL(input), ZSTR_LEN(input), false);
      |                                                 ^~~~~~~~
In file included from /dev/shm/BUILD/php-pecl-rnp-0.1.1/ZTS/php_rnp.h:7,
                 from /dev/shm/BUILD/php-pecl-rnp-0.1.1/ZTS/rnp.c:36:
/usr/include/rnp/rnp.h:2592:58: note: expected 'const uint8_t *' {aka 'const unsigned char *'} but argument is of type 'char *'
 2592 |                                            const uint8_t buf[],
      |                                            ~~~~~~~~~~~~~~^~~~~
In file included from /usr/include/php-zts/php/Zend/zend.h:27,
                 from /usr/include/php-zts/php/main/php.h:31,
                 from /dev/shm/BUILD/php-pecl-rnp-0.1.1/ZTS/rnp.c:34:
/dev/shm/BUILD/php-pecl-rnp-0.1.1/ZTS/rnp.c:354:52: warning: pointer targets in passing argument 1 of 'zend_string_init' differ in signedness [-Wpointer-sign]
  354 |                         ZVAL_STRINGL(return_value, buf, len);
      |                                                    ^~~
      |                                                    |
      |                                                    uint8_t * {aka unsigned char *}
/usr/include/php-zts/php/Zend/zend_types.h:927:37: note: in definition of macro 'ZVAL_NEW_STR'
  927 |                 zend_string *__s = (s);                                 \
      |                                     ^
/dev/shm/BUILD/php-pecl-rnp-0.1.1/ZTS/rnp.c:354:25: note: in expansion of macro 'ZVAL_STRINGL'
  354 |                         ZVAL_STRINGL(return_value, buf, len);
      |                         ^~~~~~~~~~~~
In file included from /usr/include/php-zts/php/Zend/zend.h:32,
                 from /usr/include/php-zts/php/main/php.h:31,
                 from /dev/shm/BUILD/php-pecl-rnp-0.1.1/ZTS/rnp.c:34:
/usr/include/php-zts/php/Zend/zend_string.h:164:69: note: expected 'const char *' but argument is of type 'uint8_t *' {aka 'unsigned char *'}
  164 | static zend_always_inline zend_string *zend_string_init(const char *str, size_t len, bool persistent)
      |                                                         ~~~~~~~~~~~~^~~
/dev/shm/BUILD/php-pecl-rnp-0.1.1/ZTS/rnp.c: In function 'zif_rnp_dump_packets_to_json':
/usr/include/php-zts/php/Zend/zend_string.h:60:31: warning: pointer targets in passing argument 2 of 'rnp_input_from_memory' differ in signedness [-Wpointer-sign]
   60 | #define ZSTR_VAL(zstr)  (zstr)->val
      |                         ~~~~~~^~~~~
      |                               |
      |                               char *
/dev/shm/BUILD/php-pecl-rnp-0.1.1/ZTS/rnp.c:380:49: note: in expansion of macro 'ZSTR_VAL'
  380 |         ret = rnp_input_from_memory(&mem_input, ZSTR_VAL(input), ZSTR_LEN(input), false);
      |                                                 ^~~~~~~~
In file included from /dev/shm/BUILD/php-pecl-rnp-0.1.1/ZTS/php_rnp.h:7,
                 from /dev/shm/BUILD/php-pecl-rnp-0.1.1/ZTS/rnp.c:36:
/usr/include/rnp/rnp.h:2592:58: note: expected 'const uint8_t *' {aka 'const unsigned char *'} but argument is of type 'char *'
 2592 |                                            const uint8_t buf[],
      |                                            ~~~~~~~~~~~~~~^~~~~
In file included from /usr/include/php-zts/php/Zend/zend.h:32,
                 from /usr/include/php-zts/php/main/php.h:31,
                 from /dev/shm/BUILD/php-pecl-rnp-0.1.1/ZTS/rnp.c:34:
/dev/shm/BUILD/php-pecl-rnp-0.1.1/ZTS/rnp.c: In function 'zif_rnp_op_sign':
/usr/include/php-zts/php/Zend/zend_string.h:60:31: warning: pointer targets in passing argument 2 of 'rnp_input_from_memory' differ in signedness [-Wpointer-sign]
   60 | #define ZSTR_VAL(zstr)  (zstr)->val
      |                         ~~~~~~^~~~~
      |                               |
      |                               char *
/dev/shm/BUILD/php-pecl-rnp-0.1.1/ZTS/rnp.c:686:49: note: in expansion of macro 'ZSTR_VAL'
  686 |         ret = rnp_input_from_memory(&mem_input, ZSTR_VAL(data), ZSTR_LEN(data), false);
      |                                                 ^~~~~~~~
In file included from /dev/shm/BUILD/php-pecl-rnp-0.1.1/ZTS/php_rnp.h:7,
                 from /dev/shm/BUILD/php-pecl-rnp-0.1.1/ZTS/rnp.c:36:
/usr/include/rnp/rnp.h:2592:58: note: expected 'const uint8_t *' {aka 'const unsigned char *'} but argument is of type 'char *'
 2592 |                                            const uint8_t buf[],
      |                                            ~~~~~~~~~~~~~~^~~~~
In file included from /usr/include/php-zts/php/Zend/zend.h:27,
                 from /usr/include/php-zts/php/main/php.h:31,
                 from /dev/shm/BUILD/php-pecl-rnp-0.1.1/ZTS/rnp.c:34:
/dev/shm/BUILD/php-pecl-rnp-0.1.1/ZTS/rnp.c:802:44: warning: pointer targets in passing argument 1 of 'zend_string_init' differ in signedness [-Wpointer-sign]
  802 |                 ZVAL_STRINGL(return_value, sig_buf, sig_len);
      |                                            ^~~~~~~
      |                                            |
      |                                            uint8_t * {aka unsigned char *}
/usr/include/php-zts/php/Zend/zend_types.h:927:37: note: in definition of macro 'ZVAL_NEW_STR'
  927 |                 zend_string *__s = (s);                                 \
      |                                     ^
/dev/shm/BUILD/php-pecl-rnp-0.1.1/ZTS/rnp.c:802:17: note: in expansion of macro 'ZVAL_STRINGL'
  802 |                 ZVAL_STRINGL(return_value, sig_buf, sig_len);
      |                 ^~~~~~~~~~~~
In file included from /usr/include/php-zts/php/Zend/zend.h:32,
                 from /usr/include/php-zts/php/main/php.h:31,
                 from /dev/shm/BUILD/php-pecl-rnp-0.1.1/ZTS/rnp.c:34:
/usr/include/php-zts/php/Zend/zend_string.h:164:69: note: expected 'const char *' but argument is of type 'uint8_t *' {aka 'unsigned char *'}
  164 | static zend_always_inline zend_string *zend_string_init(const char *str, size_t len, bool persistent)
      |                                                         ~~~~~~~~~~~~^~~
/dev/shm/BUILD/php-pecl-rnp-0.1.1/ZTS/rnp.c: In function 'zif_rnp_op_sign_cleartext':
/usr/include/php-zts/php/Zend/zend_string.h:60:31: warning: pointer targets in passing argument 2 of 'rnp_input_from_memory' differ in signedness [-Wpointer-sign]
   60 | #define ZSTR_VAL(zstr)  (zstr)->val
      |                         ~~~~~~^~~~~
      |                               |
      |                               char *
/dev/shm/BUILD/php-pecl-rnp-0.1.1/ZTS/rnp.c:841:49: note: in expansion of macro 'ZSTR_VAL'
  841 |         ret = rnp_input_from_memory(&mem_input, ZSTR_VAL(data), ZSTR_LEN(data), false);
      |                                                 ^~~~~~~~
In file included from /dev/shm/BUILD/php-pecl-rnp-0.1.1/ZTS/php_rnp.h:7,
                 from /dev/shm/BUILD/php-pecl-rnp-0.1.1/ZTS/rnp.c:36:
/usr/include/rnp/rnp.h:2592:58: note: expected 'const uint8_t *' {aka 'const unsigned char *'} but argument is of type 'char *'
 2592 |                                            const uint8_t buf[],
      |                                            ~~~~~~~~~~~~~~^~~~~
In file included from /usr/include/php-zts/php/Zend/zend.h:27,
                 from /usr/include/php-zts/php/main/php.h:31,
                 from /dev/shm/BUILD/php-pecl-rnp-0.1.1/ZTS/rnp.c:34:
/dev/shm/BUILD/php-pecl-rnp-0.1.1/ZTS/rnp.c:924:44: warning: pointer targets in passing argument 1 of 'zend_string_init' differ in signedness [-Wpointer-sign]
  924 |                 ZVAL_STRINGL(return_value, sig_buf, sig_len);
      |                                            ^~~~~~~
      |                                            |
      |                                            uint8_t * {aka unsigned char *}
/usr/include/php-zts/php/Zend/zend_types.h:927:37: note: in definition of macro 'ZVAL_NEW_STR'
  927 |                 zend_string *__s = (s);                                 \
      |                                     ^
/dev/shm/BUILD/php-pecl-rnp-0.1.1/ZTS/rnp.c:924:17: note: in expansion of macro 'ZVAL_STRINGL'
  924 |                 ZVAL_STRINGL(return_value, sig_buf, sig_len);
      |                 ^~~~~~~~~~~~
In file included from /usr/include/php-zts/php/Zend/zend.h:32,
                 from /usr/include/php-zts/php/main/php.h:31,
                 from /dev/shm/BUILD/php-pecl-rnp-0.1.1/ZTS/rnp.c:34:
/usr/include/php-zts/php/Zend/zend_string.h:164:69: note: expected 'const char *' but argument is of type 'uint8_t *' {aka 'unsigned char *'}
  164 | static zend_always_inline zend_string *zend_string_init(const char *str, size_t len, bool persistent)
      |                                                         ~~~~~~~~~~~~^~~
/dev/shm/BUILD/php-pecl-rnp-0.1.1/ZTS/rnp.c: In function 'zif_rnp_op_sign_detached':
/usr/include/php-zts/php/Zend/zend_string.h:60:31: warning: pointer targets in passing argument 2 of 'rnp_input_from_memory' differ in signedness [-Wpointer-sign]
   60 | #define ZSTR_VAL(zstr)  (zstr)->val
      |                         ~~~~~~^~~~~
      |                               |
      |                               char *
/dev/shm/BUILD/php-pecl-rnp-0.1.1/ZTS/rnp.c:963:49: note: in expansion of macro 'ZSTR_VAL'
  963 |         ret = rnp_input_from_memory(&mem_input, ZSTR_VAL(data), ZSTR_LEN(data), false);
      |                                                 ^~~~~~~~
In file included from /dev/shm/BUILD/php-pecl-rnp-0.1.1/ZTS/php_rnp.h:7,
                 from /dev/shm/BUILD/php-pecl-rnp-0.1.1/ZTS/rnp.c:36:
/usr/include/rnp/rnp.h:2592:58: note: expected 'const uint8_t *' {aka 'const unsigned char *'} but argument is of type 'char *'
 2592 |                                            const uint8_t buf[],
      |                                            ~~~~~~~~~~~~~~^~~~~
In file included from /usr/include/php-zts/php/Zend/zend.h:27,
                 from /usr/include/php-zts/php/main/php.h:31,
                 from /dev/shm/BUILD/php-pecl-rnp-0.1.1/ZTS/rnp.c:34:
/dev/shm/BUILD/php-pecl-rnp-0.1.1/ZTS/rnp.c:1046:44: warning: pointer targets in passing argument 1 of 'zend_string_init' differ in signedness [-Wpointer-sign]
 1046 |                 ZVAL_STRINGL(return_value, sig_buf, sig_len);
      |                                            ^~~~~~~
      |                                            |
      |                                            uint8_t * {aka unsigned char *}
/usr/include/php-zts/php/Zend/zend_types.h:927:37: note: in definition of macro 'ZVAL_NEW_STR'
  927 |                 zend_string *__s = (s);                                 \
      |                                     ^
/dev/shm/BUILD/php-pecl-rnp-0.1.1/ZTS/rnp.c:1046:17: note: in expansion of macro 'ZVAL_STRINGL'
 1046 |                 ZVAL_STRINGL(return_value, sig_buf, sig_len);
      |                 ^~~~~~~~~~~~
In file included from /usr/include/php-zts/php/Zend/zend.h:32,
                 from /usr/include/php-zts/php/main/php.h:31,
                 from /dev/shm/BUILD/php-pecl-rnp-0.1.1/ZTS/rnp.c:34:
/usr/include/php-zts/php/Zend/zend_string.h:164:69: note: expected 'const char *' but argument is of type 'uint8_t *' {aka 'unsigned char *'}
  164 | static zend_always_inline zend_string *zend_string_init(const char *str, size_t len, bool persistent)
      |                                                         ~~~~~~~~~~~~^~~
/dev/shm/BUILD/php-pecl-rnp-0.1.1/ZTS/rnp.c: In function 'zif_rnp_op_verify':
/usr/include/php-zts/php/Zend/zend_string.h:60:31: warning: pointer targets in passing argument 2 of 'rnp_input_from_memory' differ in signedness [-Wpointer-sign]
   60 | #define ZSTR_VAL(zstr)  (zstr)->val
      |                         ~~~~~~^~~~~
      |                               |
      |                               char *
/dev/shm/BUILD/php-pecl-rnp-0.1.1/ZTS/rnp.c:1185:49: note: in expansion of macro 'ZSTR_VAL'
 1185 |         ret = rnp_input_from_memory(&mem_input, ZSTR_VAL(data), ZSTR_LEN(data), false);
      |                                                 ^~~~~~~~
In file included from /dev/shm/BUILD/php-pecl-rnp-0.1.1/ZTS/php_rnp.h:7,
                 from /dev/shm/BUILD/php-pecl-rnp-0.1.1/ZTS/rnp.c:36:
/usr/include/rnp/rnp.h:2592:58: note: expected 'const uint8_t *' {aka 'const unsigned char *'} but argument is of type 'char *'
 2592 |                                            const uint8_t buf[],
      |                                            ~~~~~~~~~~~~~~^~~~~
In file included from /usr/include/php-zts/php/Zend/zend.h:32,
                 from /usr/include/php-zts/php/main/php.h:31,
                 from /dev/shm/BUILD/php-pecl-rnp-0.1.1/ZTS/rnp.c:34:
/dev/shm/BUILD/php-pecl-rnp-0.1.1/ZTS/rnp.c: In function 'zif_rnp_op_verify_detached':
/usr/include/php-zts/php/Zend/zend_string.h:60:31: warning: pointer targets in passing argument 2 of 'rnp_input_from_memory' differ in signedness [-Wpointer-sign]
   60 | #define ZSTR_VAL(zstr)  (zstr)->val
      |                         ~~~~~~^~~~~
      |                               |
      |                               char *
/dev/shm/BUILD/php-pecl-rnp-0.1.1/ZTS/rnp.c:1236:54: note: in expansion of macro 'ZSTR_VAL'
 1236 |         ret = rnp_input_from_memory(&mem_data_input, ZSTR_VAL(data), ZSTR_LEN(data), false);
      |                                                      ^~~~~~~~
In file included from /dev/shm/BUILD/php-pecl-rnp-0.1.1/ZTS/php_rnp.h:7,
                 from /dev/shm/BUILD/php-pecl-rnp-0.1.1/ZTS/rnp.c:36:
/usr/include/rnp/rnp.h:2592:58: note: expected 'const uint8_t *' {aka 'const unsigned char *'} but argument is of type 'char *'
 2592 |                                            const uint8_t buf[],
      |                                            ~~~~~~~~~~~~~~^~~~~
In file included from /usr/include/php-zts/php/Zend/zend.h:32,
                 from /usr/include/php-zts/php/main/php.h:31,
                 from /dev/shm/BUILD/php-pecl-rnp-0.1.1/ZTS/rnp.c:34:
/usr/include/php-zts/php/Zend/zend_string.h:60:31: warning: pointer targets in passing argument 2 of 'rnp_input_from_memory' differ in signedness [-Wpointer-sign]
   60 | #define ZSTR_VAL(zstr)  (zstr)->val
      |                         ~~~~~~^~~~~
      |                               |
      |                               char *
/dev/shm/BUILD/php-pecl-rnp-0.1.1/ZTS/rnp.c:1241:53: note: in expansion of macro 'ZSTR_VAL'
 1241 |         ret = rnp_input_from_memory(&mem_sig_input, ZSTR_VAL(signature), ZSTR_LEN(signature), false);
      |                                                     ^~~~~~~~
In file included from /dev/shm/BUILD/php-pecl-rnp-0.1.1/ZTS/php_rnp.h:7,
                 from /dev/shm/BUILD/php-pecl-rnp-0.1.1/ZTS/rnp.c:36:
/usr/include/rnp/rnp.h:2592:58: note: expected 'const uint8_t *' {aka 'const unsigned char *'} but argument is of type 'char *'
 2592 |                                            const uint8_t buf[],
      |                                            ~~~~~~~~~~~~~~^~~~~
/dev/shm/BUILD/php-pecl-rnp-0.1.1/ZTS/rnp.c:1226:16: warning: unused variable 'i' [-Wunused-variable]
 1226 |         size_t i;
      |                ^
/dev/shm/BUILD/php-pecl-rnp-0.1.1/ZTS/rnp.c:1225:16: warning: unused variable 'sigcount' [-Wunused-variable]
 1225 |         size_t sigcount = 0;
      |                ^~~~~~~~
In file included from /usr/include/php-zts/php/Zend/zend.h:32,
                 from /usr/include/php-zts/php/main/php.h:31,
                 from /dev/shm/BUILD/php-pecl-rnp-0.1.1/ZTS/rnp.c:34:
/dev/shm/BUILD/php-pecl-rnp-0.1.1/ZTS/rnp.c: In function 'zif_rnp_op_encrypt':
/usr/include/php-zts/php/Zend/zend_string.h:60:31: warning: pointer targets in passing argument 2 of 'rnp_input_from_memory' differ in signedness [-Wpointer-sign]
   60 | #define ZSTR_VAL(zstr)  (zstr)->val
      |                         ~~~~~~^~~~~
      |                               |
      |                               char *
/dev/shm/BUILD/php-pecl-rnp-0.1.1/ZTS/rnp.c:1292:49: note: in expansion of macro 'ZSTR_VAL'
 1292 |         ret = rnp_input_from_memory(&mem_input, ZSTR_VAL(message), ZSTR_LEN(message), false);
      |                                                 ^~~~~~~~
In file included from /dev/shm/BUILD/php-pecl-rnp-0.1.1/ZTS/php_rnp.h:7,
                 from /dev/shm/BUILD/php-pecl-rnp-0.1.1/ZTS/rnp.c:36:
/usr/include/rnp/rnp.h:2592:58: note: expected 'const uint8_t *' {aka 'const unsigned char *'} but argument is of type 'char *'
 2592 |                                            const uint8_t buf[],
      |                                            ~~~~~~~~~~~~~~^~~~~
In file included from /usr/include/php-zts/php/Zend/zend.h:27,
                 from /usr/include/php-zts/php/main/php.h:31,
                 from /dev/shm/BUILD/php-pecl-rnp-0.1.1/ZTS/rnp.c:34:
/dev/shm/BUILD/php-pecl-rnp-0.1.1/ZTS/rnp.c:1458:44: warning: pointer targets in passing argument 1 of 'zend_string_init' differ in signedness [-Wpointer-sign]
 1458 |                 ZVAL_STRINGL(return_value, encrypted_buf, encrypted_len);
      |                                            ^~~~~~~~~~~~~
      |                                            |
      |                                            uint8_t * {aka unsigned char *}
/usr/include/php-zts/php/Zend/zend_types.h:927:37: note: in definition of macro 'ZVAL_NEW_STR'
  927 |                 zend_string *__s = (s);                                 \
      |                                     ^
/dev/shm/BUILD/php-pecl-rnp-0.1.1/ZTS/rnp.c:1458:17: note: in expansion of macro 'ZVAL_STRINGL'
 1458 |                 ZVAL_STRINGL(return_value, encrypted_buf, encrypted_len);
      |                 ^~~~~~~~~~~~
In file included from /usr/include/php-zts/php/Zend/zend.h:32,
                 from /usr/include/php-zts/php/main/php.h:31,
                 from /dev/shm/BUILD/php-pecl-rnp-0.1.1/ZTS/rnp.c:34:
/usr/include/php-zts/php/Zend/zend_string.h:164:69: note: expected 'const char *' but argument is of type 'uint8_t *' {aka 'unsigned char *'}
  164 | static zend_always_inline zend_string *zend_string_init(const char *str, size_t len, bool persistent)
      |                                                         ~~~~~~~~~~~~^~~
/dev/shm/BUILD/php-pecl-rnp-0.1.1/ZTS/rnp.c: In function 'zif_rnp_decrypt':
/usr/include/php-zts/php/Zend/zend_string.h:60:31: warning: pointer targets in passing argument 2 of 'rnp_input_from_memory' differ in signedness [-Wpointer-sign]
   60 | #define ZSTR_VAL(zstr)  (zstr)->val
      |                         ~~~~~~^~~~~
      |                               |
      |                               char *
/dev/shm/BUILD/php-pecl-rnp-0.1.1/ZTS/rnp.c:1491:49: note: in expansion of macro 'ZSTR_VAL'
 1491 |         ret = rnp_input_from_memory(&mem_input, ZSTR_VAL(input), ZSTR_LEN(input), false);
      |                                                 ^~~~~~~~
In file included from /dev/shm/BUILD/php-pecl-rnp-0.1.1/ZTS/php_rnp.h:7,
                 from /dev/shm/BUILD/php-pecl-rnp-0.1.1/ZTS/rnp.c:36:
/usr/include/rnp/rnp.h:2592:58: note: expected 'const uint8_t *' {aka 'const unsigned char *'} but argument is of type 'char *'
 2592 |                                            const uint8_t buf[],
      |                                            ~~~~~~~~~~~~~~^~~~~
In file included from /usr/include/php-zts/php/Zend/zend.h:27,
                 from /usr/include/php-zts/php/main/php.h:31,
                 from /dev/shm/BUILD/php-pecl-rnp-0.1.1/ZTS/rnp.c:34:
/dev/shm/BUILD/php-pecl-rnp-0.1.1/ZTS/rnp.c:1509:44: warning: pointer targets in passing argument 1 of 'zend_string_init' differ in signedness [-Wpointer-sign]
 1509 |                 ZVAL_STRINGL(return_value, decrypted_buf, decrypted_len);
      |                                            ^~~~~~~~~~~~~
      |                                            |
      |                                            uint8_t * {aka unsigned char *}
/usr/include/php-zts/php/Zend/zend_types.h:927:37: note: in definition of macro 'ZVAL_NEW_STR'
  927 |                 zend_string *__s = (s);                                 \
      |                                     ^
/dev/shm/BUILD/php-pecl-rnp-0.1.1/ZTS/rnp.c:1509:17: note: in expansion of macro 'ZVAL_STRINGL'
 1509 |                 ZVAL_STRINGL(return_value, decrypted_buf, decrypted_len);
      |                 ^~~~~~~~~~~~
In file included from /usr/include/php-zts/php/Zend/zend.h:32,
                 from /usr/include/php-zts/php/main/php.h:31,
                 from /dev/shm/BUILD/php-pecl-rnp-0.1.1/ZTS/rnp.c:34:
/usr/include/php-zts/php/Zend/zend_string.h:164:69: note: expected 'const char *' but argument is of type 'uint8_t *' {aka 'unsigned char *'}
  164 | static zend_always_inline zend_string *zend_string_init(const char *str, size_t len, bool persistent)
      |                                                         ~~~~~~~~~~~~^~~
/dev/shm/BUILD/php-pecl-rnp-0.1.1/ZTS/rnp.c: In function 'zif_rnp_key_get_info':
/dev/shm/BUILD/php-pecl-rnp-0.1.1/ZTS/rnp.c:1769:45: warning: pointer targets in passing argument 2 of 'rnp_key_valid_till64' differ in signedness [-Wpointer-sign]
 1769 |         if ((ret = rnp_key_valid_till64(kh, &longval))) {
      |                                             ^~~~~~~~
      |                                             |
      |                                             zend_long * {aka long int *}
In file included from /dev/shm/BUILD/php-pecl-rnp-0.1.1/ZTS/php_rnp.h:7,
                 from /dev/shm/BUILD/php-pecl-rnp-0.1.1/ZTS/rnp.c:36:
/usr/include/rnp/rnp.h:1770:75: note: expected 'uint64_t *' {aka 'long unsigned int *'} but argument is of type 'zend_long *' {aka 'long int *'}
 1770 | RNP_API rnp_result_t rnp_key_valid_till64(rnp_key_handle_t key, uint64_t *result);
      |                                                                 ~~~~~~~~~~^~~~~~
In file included from /usr/include/php-zts/php/Zend/zend.h:27,
                 from /usr/include/php-zts/php/main/php.h:31,
                 from /dev/shm/BUILD/php-pecl-rnp-0.1.1/ZTS/rnp.c:34:
/dev/shm/BUILD/php-pecl-rnp-0.1.1/ZTS/rnp.c: In function 'zif_rnp_key_export':
/dev/shm/BUILD/php-pecl-rnp-0.1.1/ZTS/rnp.c:1839:44: warning: pointer targets in passing argument 1 of 'zend_string_init' differ in signedness [-Wpointer-sign]
 1839 |                 ZVAL_STRINGL(return_value, exported_buf, exported_len);
      |                                            ^~~~~~~~~~~~
      |                                            |
      |                                            uint8_t * {aka unsigned char *}
/usr/include/php-zts/php/Zend/zend_types.h:927:37: note: in definition of macro 'ZVAL_NEW_STR'
  927 |                 zend_string *__s = (s);                                 \
      |                                     ^
/dev/shm/BUILD/php-pecl-rnp-0.1.1/ZTS/rnp.c:1839:17: note: in expansion of macro 'ZVAL_STRINGL'
 1839 |                 ZVAL_STRINGL(return_value, exported_buf, exported_len);
      |                 ^~~~~~~~~~~~
In file included from /usr/include/php-zts/php/Zend/zend.h:32,
                 from /usr/include/php-zts/php/main/php.h:31,
                 from /dev/shm/BUILD/php-pecl-rnp-0.1.1/ZTS/rnp.c:34:
/usr/include/php-zts/php/Zend/zend_string.h:164:69: note: expected 'const char *' but argument is of type 'uint8_t *' {aka 'unsigned char *'}
  164 | static zend_always_inline zend_string *zend_string_init(const char *str, size_t len, bool persistent)
      |                                                         ~~~~~~~~~~~~^~~
In file included from /usr/include/php-zts/php/Zend/zend.h:27,
                 from /usr/include/php-zts/php/main/php.h:31,
                 from /dev/shm/BUILD/php-pecl-rnp-0.1.1/ZTS/rnp.c:34:
/dev/shm/BUILD/php-pecl-rnp-0.1.1/ZTS/rnp.c: In function 'zif_rnp_key_export_autocrypt':
/dev/shm/BUILD/php-pecl-rnp-0.1.1/ZTS/rnp.c:1909:44: warning: pointer targets in passing argument 1 of 'zend_string_init' differ in signedness [-Wpointer-sign]
 1909 |                 ZVAL_STRINGL(return_value, exported_buf, exported_len);
      |                                            ^~~~~~~~~~~~
      |                                            |
      |                                            uint8_t * {aka unsigned char *}
/usr/include/php-zts/php/Zend/zend_types.h:927:37: note: in definition of macro 'ZVAL_NEW_STR'
  927 |                 zend_string *__s = (s);                                 \
      |                                     ^
/dev/shm/BUILD/php-pecl-rnp-0.1.1/ZTS/rnp.c:1909:17: note: in expansion of macro 'ZVAL_STRINGL'
 1909 |                 ZVAL_STRINGL(return_value, exported_buf, exported_len);
      |                 ^~~~~~~~~~~~
In file included from /usr/include/php-zts/php/Zend/zend.h:32,
                 from /usr/include/php-zts/php/main/php.h:31,
                 from /dev/shm/BUILD/php-pecl-rnp-0.1.1/ZTS/rnp.c:34:
/usr/include/php-zts/php/Zend/zend_string.h:164:69: note: expected 'const char *' but argument is of type 'uint8_t *' {aka 'unsigned char *'}
  164 | static zend_always_inline zend_string *zend_string_init(const char *str, size_t len, bool persistent)
      |                                                         ~~~~~~~~~~~~^~~
/dev/shm/BUILD/php-pecl-rnp-0.1.1/ZTS/rnp.c: In function 'zif_rnp_import_keys':
/usr/include/php-zts/php/Zend/zend_string.h:60:31: warning: pointer targets in passing argument 2 of 'rnp_input_from_memory' differ in signedness [-Wpointer-sign]
   60 | #define ZSTR_VAL(zstr)  (zstr)->val
      |                         ~~~~~~^~~~~
      |                               |
      |                               char *
/dev/shm/BUILD/php-pecl-rnp-0.1.1/ZTS/rnp.c:1940:49: note: in expansion of macro 'ZSTR_VAL'
 1940 |         ret = rnp_input_from_memory(&mem_input, ZSTR_VAL(input), ZSTR_LEN(input), false);
      |                                                 ^~~~~~~~
In file included from /dev/shm/BUILD/php-pecl-rnp-0.1.1/ZTS/php_rnp.h:7,
                 from /dev/shm/BUILD/php-pecl-rnp-0.1.1/ZTS/rnp.c:36:
/usr/include/rnp/rnp.h:2592:58: note: expected 'const uint8_t *' {aka 'const unsigned char *'} but argument is of type 'char *'
 2592 |                                            const uint8_t buf[],
      |                                            ~~~~~~~~~~~~~~^~~~~
/dev/shm/BUILD/php-pecl-rnp-0.1.1/ZTS/rnp.c:1953:1: warning: label 'done' defined but not used [-Wunused-label]
 1953 | done:
      | ^~~~
In file included from /usr/include/php-zts/php/Zend/zend.h:27,
                 from /usr/include/php-zts/php/main/php.h:31,
                 from /dev/shm/BUILD/php-pecl-rnp-0.1.1/ZTS/rnp.c:34:
/dev/shm/BUILD/php-pecl-rnp-0.1.1/ZTS/rnp.c: In function 'zif_rnp_key_export_revocation':
/dev/shm/BUILD/php-pecl-rnp-0.1.1/ZTS/rnp.c:2126:44: warning: pointer targets in passing argument 1 of 'zend_string_init' differ in signedness [-Wpointer-sign]
 2126 |                 ZVAL_STRINGL(return_value, exported_buf, exported_len);
      |                                            ^~~~~~~~~~~~
      |                                            |
      |                                            uint8_t * {aka unsigned char *}
/usr/include/php-zts/php/Zend/zend_types.h:927:37: note: in definition of macro 'ZVAL_NEW_STR'
  927 |                 zend_string *__s = (s);                                 \
      |                                     ^
/dev/shm/BUILD/php-pecl-rnp-0.1.1/ZTS/rnp.c:2126:17: note: in expansion of macro 'ZVAL_STRINGL'
 2126 |                 ZVAL_STRINGL(return_value, exported_buf, exported_len);
      |                 ^~~~~~~~~~~~
In file included from /usr/include/php-zts/php/Zend/zend.h:32,
                 from /usr/include/php-zts/php/main/php.h:31,
                 from /dev/shm/BUILD/php-pecl-rnp-0.1.1/ZTS/rnp.c:34:
/usr/include/php-zts/php/Zend/zend_string.h:164:69: note: expected 'const char *' but argument is of type 'uint8_t *' {aka 'unsigned char *'}
  164 | static zend_always_inline zend_string *zend_string_init(const char *str, size_t len, bool persistent)
      |                                                         ~~~~~~~~~~~~^~~
/dev/shm/BUILD/php-pecl-rnp-0.1.1/ZTS/rnp.c: In function 'zif_rnp_import_signatures':
/usr/include/php-zts/php/Zend/zend_string.h:60:31: warning: pointer targets in passing argument 2 of 'rnp_input_from_memory' differ in signedness [-Wpointer-sign]
   60 | #define ZSTR_VAL(zstr)  (zstr)->val
      |                         ~~~~~~^~~~~
      |                               |
      |                               char *
/dev/shm/BUILD/php-pecl-rnp-0.1.1/ZTS/rnp.c:2156:49: note: in expansion of macro 'ZSTR_VAL'
 2156 |         ret = rnp_input_from_memory(&mem_input, ZSTR_VAL(input), ZSTR_LEN(input), false);
      |                                                 ^~~~~~~~
In file included from /dev/shm/BUILD/php-pecl-rnp-0.1.1/ZTS/php_rnp.h:7,
                 from /dev/shm/BUILD/php-pecl-rnp-0.1.1/ZTS/rnp.c:36:
/usr/include/rnp/rnp.h:2592:58: note: expected 'const uint8_t *' {aka 'const unsigned char *'} but argument is of type 'char *'
 2592 |                                            const uint8_t buf[],
      |                                            ~~~~~~~~~~~~~~^~~~~
/dev/shm/BUILD/php-pecl-rnp-0.1.1/ZTS/rnp.c:2169:1: warning: label 'done' defined but not used [-Wunused-label]
 2169 | done:
      | ^~~~
/dev/shm/BUILD/php-pecl-rnp-0.1.1/ZTS/rnp.c: In function 'zm_startup_rnp':
/dev/shm/BUILD/php-pecl-rnp-0.1.1/ZTS/rnp.c:2273:1: warning: control reaches end of non-void function [-Wreturn-type]
 2273 | }
      | ^