From f356ccd54a20c9e305fcf1746693a44d2ef462d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julian=20B=C3=BCchel?= Date: Tue, 27 Aug 2019 09:21:27 +0200 Subject: [PATCH] Added the pragma line to the top (#3139) * Removed pragme in BLERemoteService.cpp * Added the line at the top and changed to warning --- libraries/BLE/src/BLERemoteService.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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.