mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-09 00:00:04 +01:00
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
This commit is contained in:
parent
3077b7776e
commit
61cc61817e
2 changed files with 2 additions and 0 deletions
|
@ -15,6 +15,7 @@ env:
|
|||
- LWS_METHOD=nossl CMAKE_ARGS="-DLWS_WITH_SSL=OFF"
|
||||
- LWS_METHOD=nodaemon CMAKE_ARGS="-DLWS_WITHOUT_DAEMONIZE=ON"
|
||||
- LWS_METHOD=cgi CMAKE_ARGS="-DLWS_WITH_CGI=ON"
|
||||
- LWS_METHOD=nologs CMAKE_ARGS="-DLWS_WITH_NO_LOGS=ON"
|
||||
|
||||
os:
|
||||
- linux
|
||||
|
|
|
@ -386,6 +386,7 @@ lws_callback_http_dummy(struct lws *wsi, enum lws_callback_reasons reason,
|
|||
{
|
||||
struct lws_ssl_info *si = in;
|
||||
|
||||
(void)si;
|
||||
lwsl_notice("LWS_CALLBACK_SSL_INFO: where: 0x%x, ret: 0x%x\n",
|
||||
si->where, si->ret);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue