Added the pragma line to the top (#3139)

* Removed pragme in BLERemoteService.cpp

* Added the line at the top and changed to warning
This commit is contained in:
Julian Büchel 2019-08-27 09:21:27 +02:00 committed by Me No Dev
parent 6daf773464
commit f356ccd54a

View File

@ -14,6 +14,8 @@
#include <esp_err.h> #include <esp_err.h>
#include "esp32-hal-log.h" #include "esp32-hal-log.h"
#pragma GCC diagnostic warning "-Wunused-but-set-parameter"
BLERemoteService::BLERemoteService( BLERemoteService::BLERemoteService(
esp_gatt_id_t srvcId, esp_gatt_id_t srvcId,
BLEClient* pClient, BLEClient* pClient,
@ -228,7 +230,6 @@ std::map<std::string, BLERemoteCharacteristic*>* BLERemoteService::getCharacteri
* @brief This function is designed to get characteristics map when we have multiple characteristics with the same UUID * @brief This function is designed to get characteristics map when we have multiple characteristics with the same UUID
*/ */
void BLERemoteService::getCharacteristics(std::map<uint16_t, BLERemoteCharacteristic*>* pCharacteristicMap) { void BLERemoteService::getCharacteristics(std::map<uint16_t, BLERemoteCharacteristic*>* pCharacteristicMap) {
#pragma GCC diagnostic ignored "-Wunused-but-set-parameter"
pCharacteristicMap = &m_characteristicMapByHandle; pCharacteristicMap = &m_characteristicMapByHandle;
} // Get the characteristics map. } // Get the characteristics map.