Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix compilation warnings in the lua-openssl submodule #144

Open
rdw-software opened this issue Dec 11, 2022 · 0 comments
Open

Fix compilation warnings in the lua-openssl submodule #144

rdw-software opened this issue Dec 11, 2022 · 0 comments

Comments

@rdw-software
Copy link
Member

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,
      |                                                  
@rdw-software rdw-software changed the title lua-openssl casts from incompatible pointer type Fix compilation errors in the lua-openssl submodule Dec 11, 2022
@rdw-software rdw-software changed the title Fix compilation errors in the lua-openssl submodule Fix compilation warnings in the lua-openssl submodule Dec 11, 2022
@rdw-software rdw-software added this to the Technical Debt milestone Dec 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant