Skip to content

Navigation Menu

Sign in
Appearance settings

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
This repository was archived by the owner on May 12, 2022. It is now read-only.

Commit fe093a5

Browse filesBrowse files
authored
Sanitize compiler warning in BLERemoteService.cpp (issue espressif#4660) (espressif#4669)
Compiler complains on unused parameter pCharacteristicMap: framework-arduinoespressif32\libraries\BLE\src\BLERemoteService.cpp: In member function 'void BLERemoteService::getCharacteristics(std::map<short unsigned int, BLERemoteCharacteristic*>*)': \framework-arduinoespressif32\libraries\BLE\src\BLERemoteService.cpp:246:89: warning: parameter 'pCharacteristicMap' set but not used [-Wunused-but-set-parameter] void BLERemoteService::getCharacteristics(std::map<uint16_t, BLERemoteCharacteristic*>* pCharacteristicMap) {
1 parent a0ef17a commit fe093a5
Copy full SHA for fe093a5

File tree

1 file changed

+1
-0
lines changed
Filter options

1 file changed

+1
-0
lines changed

‎libraries/BLE/src/BLERemoteService.cpp

Copy file name to clipboardExpand all lines: libraries/BLE/src/BLERemoteService.cpp
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,7 @@ std::map<uint16_t, BLERemoteCharacteristic*>* BLERemoteService::getCharacteristi
245245
*/
246246
void BLERemoteService::getCharacteristics(std::map<uint16_t, BLERemoteCharacteristic*>* pCharacteristicMap) {
247247
log_v(">> getCharacteristics() for service: %s", getUUID().toString().c_str());
248+
(void)pCharacteristicMap;
248249
// If is possible that we have not read the characteristics associated with the service so do that
249250
// now. The request to retrieve the characteristics by calling "retrieveCharacteristics" is a blocking
250251
// call and does not return until all the characteristics are available.

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.