Skip to content

Commit

Permalink
Added the pragma line to the top (#3139)
Browse files Browse the repository at this point in the history
* Removed pragme in BLERemoteService.cpp

* Added the line at the top and changed to warning
  • Loading branch information
jubueche authored and me-no-dev committed Aug 27, 2019
1 parent 6daf773 commit f356ccd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libraries/BLE/src/BLERemoteService.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
#include <esp_err.h>
#include "esp32-hal-log.h"

#pragma GCC diagnostic warning "-Wunused-but-set-parameter"

BLERemoteService::BLERemoteService(
esp_gatt_id_t srvcId,
BLEClient* pClient,
Expand Down Expand Up @@ -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
*/
void BLERemoteService::getCharacteristics(std::map<uint16_t, BLERemoteCharacteristic*>* pCharacteristicMap) {
#pragma GCC diagnostic ignored "-Wunused-but-set-parameter"
pCharacteristicMap = &m_characteristicMapByHandle;
} // Get the characteristics map.

Expand Down

0 comments on commit f356ccd

Please sign in to comment.