evo-lua / evo-luvi

[Obsolete] Experimental Lua runtime environment built on Luvi (libuv + LuaJIT)
https://evo-lua.github.io
Apache License 2.0
1 stars 0 forks source link

Fix compilation warnings in the lua-openssl submodule #144

Open Duckwhale opened 1 year ago

Duckwhale commented 1 year ago

Not sure if it's really a problem, but might be worth looking into at some point...

[20/37] Building C object CMakeFiles/lua-openssl.dir/src/ocsp.c.o
In file included from /home/runner/work/evo-luvi/evo-luvi/deps/lua-openssl/src/ocsp.c:9:
/home/runner/work/evo-luvi/evo-luvi/deps/lua-openssl/src/ocsp.c: In function ‘openssl_ocsp_request_read’:
/home/runner/work/evo-luvi/evo-luvi/deps/openssl/include/openssl/ocsp.h:123:6: warning: passing argument 1 of ‘PEM_ASN1_read_bio’ from incompatible pointer type [-Wincompatible-pointer-types]
  123 |      (char *(*)())d2i_OCSP_REQUEST,PEM_STRING_OCSP_REQUEST, \
      |      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |      |
      |      char * (*)()
/home/runner/work/evo-luvi/evo-luvi/deps/lua-openssl/src/ocsp.c:124:29: note: in expansion of macro ‘PEM_read_bio_OCSP_REQUEST’
  124 |   OCSP_REQUEST *req = pem ? PEM_read_bio_OCSP_REQUEST(bio, NULL, NULL)
      |                             ^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/runner/work/evo-luvi/evo-luvi/deps/lua-openssl/src/openssl.h:23,
                 from /home/runner/work/evo-luvi/evo-luvi/deps/lua-openssl/src/ocsp.c:7:
/home/runner/work/evo-luvi/evo-luvi/deps/openssl/include/openssl/pem.h:252:38: note: expected ‘void * (*)(void **, const unsigned char **, long int)’ but argument is of type ‘char * (*)()’
  252 | void *PEM_ASN1_read_bio(d2i_of_void *d2i, const char *name, BIO *bp, void **x,
      |                         ~~~~~~~~~~~~~^~~
In file included from /home/runner/work/evo-luvi/evo-luvi/deps/lua-openssl/src/ocsp.c:9:
/home/runner/work/evo-luvi/evo-luvi/deps/openssl/include/openssl/ocsp.h:124:9: warning: passing argument 4 of ‘PEM_ASN1_read_bio’ from incompatible pointer type [-Wincompatible-pointer-types]
  124 |      bp,(char **)(x),cb,NULL)
      |         ^~~~~~~~~~~~
      |         |
      |         char **
/home/runner/work/evo-luvi/evo-luvi/deps/lua-openssl/src/ocsp.c:124:29: note: in expansion of macro ‘PEM_read_bio_OCSP_REQUEST’
  124 |   OCSP_REQUEST *req = pem ? PEM_read_bio_OCSP_REQUEST(bio, NULL, NULL)
      |                             ^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/runner/work/evo-luvi/evo-luvi/deps/lua-openssl/src/openssl.h:23,
                 from /home/runner/work/evo-luvi/evo-luvi/deps/lua-openssl/src/ocsp.c:7:
/home/runner/work/evo-luvi/evo-luvi/deps/openssl/include/openssl/pem.h:252:77: note: expected ‘void **’ but argument is of type ‘char **’
  252 | void *PEM_ASN1_read_bio(d2i_of_void *d2i, const char *name, BIO *bp, void **x,
      |                                                                      ~~~~~~~^
In file included from /home/runner/work/evo-luvi/evo-luvi/deps/lua-openssl/src/ocsp.c:9:
/home/runner/work/evo-luvi/evo-luvi/deps/lua-openssl/src/ocsp.c: In function ‘openssl_ocsp_response_read’:
/home/runner/work/evo-luvi/evo-luvi/deps/openssl/include/openssl/ocsp.h:127:6: warning: passing argument 1 of ‘PEM_ASN1_read_bio’ from incompatible pointer type [-Wincompatible-pointer-types]
  127 |      (char *(*)())d2i_OCSP_RESPONSE,PEM_STRING_OCSP_RESPONSE, \
      |      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |      |
      |      char * (*)()
/home/runner/work/evo-luvi/evo-luvi/deps/lua-openssl/src/ocsp.c:306:30: note: in expansion of macro ‘PEM_read_bio_OCSP_RESPONSE’
  306 |   OCSP_RESPONSE *res = pem ? PEM_read_bio_OCSP_RESPONSE(bio, NULL, NULL)
      |                              ^~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/runner/work/evo-luvi/evo-luvi/deps/lua-openssl/src/openssl.h:23,
                 from /home/runner/work/evo-luvi/evo-luvi/deps/lua-openssl/src/ocsp.c:7:
/home/runner/work/evo-luvi/evo-luvi/deps/openssl/include/openssl/pem.h:252:38: note: expected ‘void * (*)(void **, const unsigned char **, long int)’ but argument is of type ‘char * (*)()’
  252 | void *PEM_ASN1_read_bio(d2i_of_void *d2i, const char *name, BIO *bp, void **x,
      |                         ~~~~~~~~~~~~~^~~
In file included from /home/runner/work/evo-luvi/evo-luvi/deps/lua-openssl/src/ocsp.c:9:
/home/runner/work/evo-luvi/evo-luvi/deps/openssl/include/openssl/ocsp.h:128:9: warning: passing argument 4 of ‘PEM_ASN1_read_bio’ from incompatible pointer type [-Wincompatible-pointer-types]
  128 |      bp,(char **)(x),cb,NULL)
      |         ^~~~~~~~~~~~
      |         |
      |         char **
/home/runner/work/evo-luvi/evo-luvi/deps/lua-openssl/src/ocsp.c:306:30: note: in expansion of macro ‘PEM_read_bio_OCSP_RESPONSE’
  306 |   OCSP_RESPONSE *res = pem ? PEM_read_bio_OCSP_RESPONSE(bio, NULL, NULL)
      |                              ^~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/runner/work/evo-luvi/evo-luvi/deps/lua-openssl/src/openssl.h:23,
                 from /home/runner/work/evo-luvi/evo-luvi/deps/lua-openssl/src/ocsp.c:7:
/home/runner/work/evo-luvi/evo-luvi/deps/openssl/include/openssl/pem.h:252:77: note: expected ‘void **’ but argument is of type ‘char **’
  252 | void *PEM_ASN1_read_bio(d2i_of_void *d2i, const char *name, BIO *bp, void **x,
      |