Fix compilation warning for WITH_WEBSOCKETS=no.

This commit is contained in:
Roger A. Light 2019-03-17 20:57:04 +00:00
parent ad2ce6c4e6
commit b29c8ced55

View File

@ -296,7 +296,10 @@ void context__add_to_disused(struct mosquitto_db *db, struct mosquitto *context)
void context__free_disused(struct mosquitto_db *db)
{
struct mosquitto *context, *next, *last = NULL;
struct mosquitto *context, *next;
#ifdef WITH_WEBSOCKETS
struct mosquitto *last = NULL;
#endif
assert(db);
context = db->ll_for_free;