Merge branch 'feature/enable_unused-but-set-variable_errors' into 'master'

change: re-enable -Werror=unused-but-set-variable

See merge request espressif/esp-idf!50725
This commit is contained in:
Alexey Lapshin
2026-07-16 15:31:20 +04:00
25 changed files with 113 additions and 50 deletions
@@ -220,7 +220,6 @@ gatt_svr_register_cb(struct ble_gatt_register_ctxt *ctxt, void *arg)
*/
int dynamic_service(const uint8_t operation, const struct ble_gatt_svc_def *svcs, const ble_uuid_t *uuid) {
int rc = 0;
int i = 0;
switch(operation) {
case 1:
/* add services in gatt_svr_svcs */
@@ -243,7 +242,6 @@ int dynamic_service(const uint8_t operation, const struct ble_gatt_svc_def *svcs
/* not able to delete service return immidietely */
return rc;
}
i++;
return rc;
break;
}
@@ -41,7 +41,6 @@ static void my_post_trans_cb(spi_slave_transaction_t *trans)
//Main application
void app_main(void)
{
int n = 0;
esp_err_t ret;
spi_slave_transaction_t t = {0};
@@ -124,8 +123,6 @@ void app_main(void)
printf("\n");
}
}
n++;
}
}