mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-02 03:00:34 +03:00
change(ci): enable -Werror=unused-but-set-variable
This commit is contained in:
@@ -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++;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user