[openssl-commits] [openssl] OpenSSL_1_1_0-stable update

bernd.edlinger at hotmail.de bernd.edlinger at hotmail.de
Fri Apr 20 13:55:07 UTC 2018


The branch OpenSSL_1_1_0-stable has been updated
       via  867dc5441aab7c813136e996d5d437740e6a3c18 (commit)
      from  b5da3cadbdaecdbdf45120fd5d75e72068edb652 (commit)


- Log -----------------------------------------------------------------
commit 867dc5441aab7c813136e996d5d437740e6a3c18
Author: Bernd Edlinger <bernd.edlinger at hotmail.de>
Date:   Thu Apr 19 22:20:29 2018 +0200

    Fix a gcc-8 warning -Wcast-function-type
    
    Casting to the generic function type "void (*)(void)"
    prevents the warning.
    
    Backport of #5816
    
    Reviewed-by: Rich Salz <rsalz at openssl.org>
    (Merged from https://github.com/openssl/openssl/pull/6027)

-----------------------------------------------------------------------

Summary of changes:
 test/shlibloadtest.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/test/shlibloadtest.c b/test/shlibloadtest.c
index 919bf7c..d584413 100644
--- a/test/shlibloadtest.c
+++ b/test/shlibloadtest.c
@@ -44,7 +44,7 @@ static OpenSSL_version_num_t OpenSSL_version_num;
 # define DSO_FREE "DSO_free"
 
 typedef void DSO;
-typedef DSO * (*DSO_dsobyaddr_t)(void (*addr)(), int flags);
+typedef DSO * (*DSO_dsobyaddr_t)(void (*addr)(void), int flags);
 typedef int (*DSO_free_t)(DSO *dso);
 
 static DSO_dsobyaddr_t DSO_dsobyaddr;
@@ -252,7 +252,7 @@ int main(int argc, char **argv)
         {
             DSO *hndl;
             /* use known symbol from crypto module */
-            if ((hndl = DSO_dsobyaddr((void (*)())ERR_get_error, 0)) != NULL) {
+            if ((hndl = DSO_dsobyaddr((void (*)(void))ERR_get_error, 0)) != NULL) {
                 DSO_free(hndl);
             } else {
                 printf("Unable to obtain DSO reference from crypto symbol\n");


More information about the openssl-commits mailing list