mirror of
https://github.com/espressif/esp-idf.git
synced 2025-12-30 06:15:07 +00:00
fix(http_server): Removed the build failure due to unused variables
There were build failure due the unused variable last_error when ESP_HTTPS_SERVER_EVENTS and HTTPD_ENABLE_EVENTS are disabled
This commit is contained in:
committed by
Mahavir Jain
parent
bd85dad2cf
commit
bdf438f0aa
@@ -40,7 +40,13 @@ static void http_dispatch_event_to_event_loop(int32_t event_id, const void* even
|
||||
}
|
||||
}
|
||||
#else // CONFIG_ESP_HTTPS_SERVER_EVENTS
|
||||
#define http_dispatch_event_to_event_loop(event_id, event_data, event_data_size) do {} while (0)
|
||||
static void http_dispatch_event_to_event_loop(int32_t event_id, const void* event_data, size_t event_data_size)
|
||||
{
|
||||
// Events disabled, do nothing
|
||||
(void) event_id;
|
||||
(void) event_data;
|
||||
(void) event_data_size;
|
||||
}
|
||||
#endif // CONFIG_ESP_HTTPS_SERVER_EVENTS
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user