8000 Added the pragma line to the top (#3139) · granis/arduino-esp32@f356ccd · GitHub
[go: up one dir, main page]

Skip to content

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit f356ccd

Browse files
jubuecheme-no-dev
authored andcommitted
Added the pragma line to the top (espressif#3139)
* Removed pragme in BLERemoteService.cpp * Added the line at the top and changed to warning
1 parent 6daf773 commit f356ccd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

libraries/BLE/src/BLERemoteService.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
#include <esp_err.h>
1515
#include "esp32-hal-log.h"
1616

17+
#pragma GCC diagnostic warning "-Wunused-but-set-parameter"
18+
1719
BLERemoteService::BLERemoteService(
1820
esp_gatt_id_t srvcId,
1921
BLEClient* pClient,
@@ -228,7 +230,6 @@ std::map<std::string, BLERemoteCharacteristic*>* BLERemoteService::getCharacteri
228230
* @brief This function is designed to get characteristics map when we have multiple characteristics with the same UUID
229231
*/
230232
void BLERemoteService::getCharacteristics(std::map<uint16_t, BLERemoteCharacteristic*>* pCharacteristicMap) {
231-
#pragma GCC diagnostic ignored "-Wunused-but-set-parameter"
232233
pCharacteristicMap = &m_characteristicMapByHandle;
233234
} // Get the characteristics map.
234235

0 commit comments

Comments
 (0)
0