Subject: Eliminated 'unused variable' compiler warning generated with -DLWS_WITH_NO_L...
authorJesse Engle <jesse.engle@threatstack.com>
Mon, 17 Jul 2017 04:16:00 +0000 (04:16 +0000)
committerAndy Green <andy@warmcat.com>
Tue, 18 Jul 2017 20:11:57 +0000 (04:11 +0800)
commit61cc61817ef8828cb95cebb4adeefbba00ed6f7c
treea0d4b5fa435bc5069c81b11dd22fc00df56072c0
parent3077b7776e2c94b14a4a9bd9b49eee850aee1e72
Subject: Eliminated 'unused variable' compiler warning generated with -DLWS_WITH_NO_LOGS=ON.

The unused variable was only declared for use in a log macro that's
compiled out with the above compiler switch. I removed the declaration
and casted the variable at each use in the block.

AG: convert to void case reference irrespective of logging enabled.
AG: travis.yml: add -DLWS_WITH_NO_LOGS=ON that also enables lwsws + cgi code
.travis.yml
lib/context.c