-
Notifications
You must be signed in to change notification settings - Fork 7.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
unused parameter in BLERemoteService::getCharacteristics() #4660
Comments
I dont remember now why there is 2 |
@chegewara thanks for the hint! Would be nice to delete the redundant function, if not needed (where?), to get rid of the compiler warning. |
Feel free to make PR, for example add this in function with warning: |
I am careful to make changes here, as long as i don't know sure what i am doing in this code. |
It is easy change, you can try it in your code. That change does nothing in code except is fooling compiler. |
issue is now adressed by PR #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) {
[STALE_SET] This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs. Thank you for your contributions. |
[STALE_DEL] This stale issue has been automatically closed. Thank you for your contributions. |
My compiler complains on a unused, but set, parameter in
BLERemoteService::getCharacteristics()
:*pCharacteristicMap = m_characteristicMapByHandle;
ist set, but neither used in the function, nor returned by it.
Maybe shall this function have a return value, other than void()?
/cc @Kolban
The text was updated successfully, but these errors were encountered: