diff --git a/libraries/BLE/src/BLERemoteService.cpp b/libraries/BLE/src/BLERemoteService.cpp index 35d7c727..754e8ac2 100644 --- a/libraries/BLE/src/BLERemoteService.cpp +++ b/libraries/BLE/src/BLERemoteService.cpp @@ -14,6 +14,8 @@ #include #include "esp32-hal-log.h" +#pragma GCC diagnostic warning "-Wunused-but-set-parameter" + BLERemoteService::BLERemoteService( esp_gatt_id_t srvcId, BLEClient* pClient, @@ -228,7 +230,6 @@ std::map* BLERemoteService::getCharacteri * @brief This function is designed to get characteristics map when we have multiple characteristics with the same UUID */ void BLERemoteService::getCharacteristics(std::map* pCharacteristicMap) { -#pragma GCC diagnostic ignored "-Wunused-but-set-parameter" pCharacteristicMap = &m_characteristicMapByHandle; } // Get the characteristics map.