Skip to content

Commit fe093a5

Browse 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

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

libraries/BLE/src/BLERemoteService.cpp

+1
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)