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:
hrushikesh.bhosale
2026-05-27 11:58:58 +05:30
committed by Hrushikesh Bhosale
parent 6036ec961d
commit 9bb92507ac
5 changed files with 21 additions and 17 deletions
@@ -23,6 +23,10 @@ extern "C" {
#define ESP_HTTPD_DEF_CTRL_PORT (32768) /*!< HTTP Server control socket port*/
#if CONFIG_HTTPD_ENABLE_EVENTS || __DOXYGEN_
ESP_EVENT_DECLARE_BASE(ESP_HTTP_SERVER_EVENT);
#endif // CONFIG_HTTPD_ENABLE_EVENTS || __DOXYGEN_
/**
* @brief HTTP Server events id
*/
@@ -38,15 +42,11 @@ typedef enum {
HTTP_SERVER_EVENT_STOP, /*!< This event occurs when HTTP Server is stopped */
} esp_http_server_event_id_t;
#if CONFIG_HTTPD_ENABLE_EVENTS || __DOXYGEN_
ESP_EVENT_DECLARE_BASE(ESP_HTTP_SERVER_EVENT);
/** Argument structure for HTTP_SERVER_EVENT_ON_DATA and HTTP_SERVER_EVENT_SENT_DATA event */
typedef struct {
int fd; /*!< Session socket file descriptor */
int data_len; /*!< Data length */
} esp_http_server_event_data;
#endif // CONFIG_HTTPD_ENABLE_EVENTS || __DOXYGEN_
/*
note: esp_https_server.h includes a customized copy of this