From: Ruediger Pluem Date: Wed, 1 Apr 2015 08:34:31 +0000 (+0000) Subject: * ssl_array_index is only used by code inside the HAVE_TLS_ALPN. So silence warnings... X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0ddfa412ee9cd815692c55f06e163c0044b60ee2;p=thirdparty%2Fapache%2Fhttpd.git * ssl_array_index is only used by code inside the HAVE_TLS_ALPN. So silence warnings if don't have it. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1670578 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/ssl/ssl_engine_kernel.c b/modules/ssl/ssl_engine_kernel.c index fe3302a3225..f6429801fa5 100644 --- a/modules/ssl/ssl_engine_kernel.c +++ b/modules/ssl/ssl_engine_kernel.c @@ -2162,6 +2162,7 @@ int ssl_callback_SessionTicket(SSL *ssl, } #endif /* HAVE_TLS_SESSION_TICKETS */ +#ifdef HAVE_TLS_ALPN static int ssl_array_index(apr_array_header_t *array, const char *s) { @@ -2175,7 +2176,6 @@ static int ssl_array_index(apr_array_header_t *array, return -1; } -#ifdef HAVE_TLS_ALPN /* * Compare to ALPN protocol proposal. Result is similar to strcmp(): * 0 gives same precedence, >0 means proto1 is prefered.