*/
static void fcgi_strm_destroy(struct fcgi_strm *fstrm)
{
- struct connection *conn = fstrm->fconn->conn;
+ struct connection __maybe_unused *conn = fstrm->fconn->conn;
TRACE_ENTER(FCGI_EV_FSTRM_END, conn, fstrm);
static size_t fcgi_strm_parse_response(struct fcgi_strm *fstrm, struct buffer *buf, size_t count)
{
- struct fcgi_conn *fconn = fstrm->fconn;
+ struct fcgi_conn __maybe_unused *fconn = fstrm->fconn;
struct htx *htx;
struct h1m *h1m = &fstrm->h1m;
size_t ret, data, total = 0;
static int fcgi_unsubscribe(struct stconn *sc, int event_type, struct wait_event *es)
{
struct fcgi_strm *fstrm = __sc_mux_strm(sc);
- struct fcgi_conn *fconn = fstrm->fconn;
+ struct fcgi_conn __maybe_unused *fconn = fstrm->fconn;
BUG_ON(event_type & ~(SUB_RETRY_SEND|SUB_RETRY_RECV));
BUG_ON(fstrm->subs && fstrm->subs != es);
*/
static void h1_set_tunnel_mode(struct h1s *h1s)
{
- struct h1c *h1c = h1s->h1c;
+ struct h1c __maybe_unused *h1c = h1s->h1c;
h1s->req.state = H1_MSG_TUNNEL;
h1s->req.flags &= ~(H1_MF_XFER_LEN|H1_MF_CLEN|H1_MF_CHNK);
const struct h2c *h2c, const struct h2s *h2s)
{
struct ist n_ist, v_ist;
- const char *c_str, *s_str;
+ const char __maybe_unused *c_str, *s_str;
chunk_reset(&trash);
c_str = chunk_newstr(&trash);
*/
static void h2s_destroy(struct h2s *h2s)
{
- struct connection *conn = h2s->h2c->conn;
+ struct connection __maybe_unused *conn = h2s->h2c->conn;
int freed = 0;
TRACE_ENTER(H2_EV_H2S_END, conn, h2s);
*/
static size_t h2s_skip_data(struct h2s *h2s, struct buffer *buf, size_t count)
{
- struct h2c *h2c = h2s->h2c;
+ struct h2c __maybe_unused *h2c = h2s->h2c;
struct htx *htx;
int bsize; /* htx block size */
int fsize; /* h2 frame size */
*/
static void spop_strm_destroy(struct spop_strm *spop_strm)
{
- struct connection *conn = spop_strm->spop_conn->conn;
+ struct connection __maybe_unused *conn = spop_strm->spop_conn->conn;
TRACE_ENTER(SPOP_EV_SPOP_STRM_END, conn, spop_strm);
static int spop_unsubscribe(struct stconn *sc, int event_type, struct wait_event *es)
{
struct spop_strm *spop_strm = __sc_mux_strm(sc);
- struct spop_conn *spop_conn = spop_strm->spop_conn;
+ struct spop_conn __maybe_unused *spop_conn = spop_strm->spop_conn;
BUG_ON(event_type & ~(SUB_RETRY_SEND|SUB_RETRY_RECV));
BUG_ON(spop_strm->subs && spop_strm->subs != es);
static int ha_quic_flush_flight(SSL *ssl)
{
- struct quic_conn *qc = SSL_get_ex_data(ssl, ssl_qc_app_data_index);
+ struct quic_conn __maybe_unused *qc = SSL_get_ex_data(ssl, ssl_qc_app_data_index);
TRACE_ENTER(QUIC_EV_CONN_FFLIGHT, qc);
TRACE_LEAVE(QUIC_EV_CONN_FFLIGHT, qc);
struct quic_tls_secrets *rx = &tls_ctx->rx;
struct quic_tls_secrets *tx = &tls_ctx->tx;
/* Used only for the traces */
- struct quic_kp_trace kp_trace = {
+ struct quic_kp_trace __maybe_unused kp_trace = {
.rx_sec = rx->secret,
.rx_seclen = rx->secretlen,
.tx_sec = tx->secret,
if ((TRACE_SOURCE)->verbosity >= SSL_VERB_ADVANCED) {
if (TRACE_ENABLED(TRACE_LEVEL_DATA, SSL_EV_CONN_CIPHERS_EXT, conn, 0, 0, 0)) {
const uint8_t *cipher_suites;
- size_t len;
+ size_t __maybe_unused len;
#if defined(OPENSSL_IS_BORINGSSL) || defined(OPENSSL_IS_AWSLC)
len = ctx->cipher_suites_len;