com php-src: Avoid curl ssl callback warnings with OpenSSL 1.1: ext/curl/interface.c

From: Date: Thu, 11 Apr 2019 12:14:21 +0000
Subject: com php-src: Avoid curl ssl callback warnings with OpenSSL 1.1: ext/curl/interface.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-105655@lists.php.net to get a copy of this message
Commit: 539a16fdb8a195544656c09282484445af8fe161 Author: Nikita Popov <nikita.ppv@gmail.com> Thu, 11 Apr 2019 12:56:42 +0200 Parents: e71cfae41963f66ac4a9f4422f49cec7afde6016 Branches: PHP-7.4 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=539a16fdb8a195544656c09282484445af8fe161 Log: Avoid curl ssl callback warnings with OpenSSL 1.1 Changed paths: M ext/curl/interface.c Diff: diff --git a/ext/curl/interface.c b/ext/curl/interface.c index bbdcdbf..8959bc1 100644 --- a/ext/curl/interface.c +++ b/ext/curl/interface.c @@ -93,7 +93,9 @@ int le_curl_share_handle; #ifdef PHP_CURL_NEED_OPENSSL_TSL /* {{{ */ static MUTEX_T *php_curl_openssl_tsl = NULL; -static void php_curl_ssl_lock(int mode, int n, const char * file, int line) +/* Locking callbacks are no longer used since OpenSSL 1.1. Mark the functions as unused to + * avoid warnings due to this. */ +static ZEND_ATTRIBUTE_UNUSED void php_curl_ssl_lock(int mode, int n, const char * file, int line) { if (mode & CRYPTO_LOCK) { tsrm_mutex_lock(php_curl_openssl_tsl[n]); @@ -102,7 +104,7 @@ static void php_curl_ssl_lock(int mode, int n, const char * file, int line) } } -static unsigned long php_curl_ssl_id(void) +static ZEND_ATTRIBUTE_UNUSED unsigned long php_curl_ssl_id(void) { return (unsigned long) tsrm_thread_id(); }

« previous php.cvs (#105655) next »