From 2224183110882401401c5094b98e650d61db361c Mon Sep 17 00:00:00 2001 From: Andy Green Date: Tue, 24 Oct 2017 06:47:10 +0800 Subject: [PATCH] http2: missing return when openssl too old --- lib/http2/http2.c | 2 ++ lib/http2/ssl-http2.c | 3 +-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/http2/http2.c b/lib/http2/http2.c index 7ba106022..e20a228e1 100644 --- a/lib/http2/http2.c +++ b/lib/http2/http2.c @@ -129,6 +129,8 @@ lws_h2_state(struct lws *wsi, enum lws_h2_states s) lwsl_info("%s: wsi %p: state %s -> %s\n", __func__, wsi, h2_state_names[wsi->u.h2.h2_state], h2_state_names[s]); + + (void)h2_state_names; wsi->u.h2.h2_state = (uint8_t)s; } diff --git a/lib/http2/ssl-http2.c b/lib/http2/ssl-http2.c index f01734354..592a73dd9 100644 --- a/lib/http2/ssl-http2.c +++ b/lib/http2/ssl-http2.c @@ -147,9 +147,8 @@ int lws_h2_configure_if_upgraded(struct lws *wsi) wsi->u.h2.tx_cr = 65535; lwsl_info("%s: wsi %p: configured for h2\n", __func__, wsi); - - return 0; #endif + return 0; } #endif #endif