From 93d947c924ea1a484b25444a6c0e6fb072dbea34 Mon Sep 17 00:00:00 2001 From: Andy Green Date: Fri, 20 Feb 2015 07:37:20 +0800 Subject: [PATCH] LWS_WITHOUT_DEBUG fix unused var Signed-off-by: Andy Green --- lib/server.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/server.c b/lib/server.c index df2524a7..7354d52f 100644 --- a/lib/server.c +++ b/lib/server.c @@ -191,12 +191,14 @@ int lws_http_action(struct libwebsocket_context *context, WSI_TOKEN_HTTP_COLON_PATH, #endif }; +#ifdef _DEBUG static const char * const method_names[] = { "GET", "POST", "OPTIONS", "PUT", "PATCH", "DELETE", #ifdef LWS_USE_HTTP2 ":path", #endif }; +#endif /* it's not websocket.... shall we accept it as http? */