You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by bn...@apache.org on 2025/03/18 01:00:06 UTC

(trafficserver) branch 11-Dev updated: 11-Dev: SSLUtils.cc address unused ctx parameter (#12103)

This is an automated email from the ASF dual-hosted git repository.

bneradt pushed a commit to branch 11-Dev
in repository https://gitbox.apache.org/repos/asf/trafficserver.git


The following commit(s) were added to refs/heads/11-Dev by this push:
     new 84923cd529 11-Dev: SSLUtils.cc address unused ctx parameter (#12103)
84923cd529 is described below

commit 84923cd529b761fe67cf4af970160a7e67dfeb99
Author: Brian Neradt <br...@gmail.com>
AuthorDate: Mon Mar 17 19:59:59 2025 -0500

    11-Dev: SSLUtils.cc address unused ctx parameter (#12103)
    
    ```
    FAILED: src/iocore/net/CMakeFiles/inknet.dir/SSLUtils.cc.o
    /Library/Developer/CommandLineTools/usr/bin/clang++ -DDEBUG -DOPENSSL_API_COMPAT=10002 -DOPENSSL_IS_OPENSSL3 -DPACKAGE_NAME="\"Apache Traffic Server\"" -DPACKAGE_VERSION=\"11.0.0\" -D_DEBUG -Ddarwin -I/Users/bneradt/project_not_synced/repos/ts_os/include -I/Users/bneradt/project_not_synced/repos/ts_os/build/include -I/Users/bneradt/project_not_synced/repos/ts_os/lib/swoc/include -I/Users/bneradt/project_not_synced/repos/ts_os/lib/yamlcpp/include -isystem /opt/ats_h3_tools/openssl-quic [...]
    /Users/bneradt/project_not_synced/repos/ts_os/src/iocore/net/SSLUtils.cc:1284:57: error: unused parameter 'ctx' [-Werror,-Wunused-parameter]
     1284 | SSLMultiCertConfigLoader::_setup_session_cache(SSL_CTX *ctx)
          |                                                         ^
    1 error generated.
    ```
    
    Co-authored-by: bneradt <bn...@yahooinc.com>
---
 src/iocore/net/SSLUtils.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/iocore/net/SSLUtils.cc b/src/iocore/net/SSLUtils.cc
index c342245968..2db2b540d6 100644
--- a/src/iocore/net/SSLUtils.cc
+++ b/src/iocore/net/SSLUtils.cc
@@ -1281,7 +1281,7 @@ fail:
 }
 
 bool
-SSLMultiCertConfigLoader::_setup_session_cache(SSL_CTX *ctx)
+SSLMultiCertConfigLoader::_setup_session_cache(SSL_CTX * /* ctx ATS_UNUSED */)
 {
   return true;
 }