Skip to content

Warnings when compiling this code #310

Closed
@roleroz

Description

@roleroz

When you build the code in this library there are several warnings printed

  • Order member initialization on BLELocalCharacteristic (fixed by Fix warnings #302)
  • Unused variables in: (fixed by Fix warnings #302)
    • HCIClass::tryResolveAddress
    • HCIClass::handleEventPkt (the whole else if statement did nothing)
    • L2CAPSignalingClass::handleSecurityData (one initialization should be inside of BLE_TRACE)
    • BluetoothCryptoToolbox::f5
    • BluetoothCryptoToolbox::testAh
    • BluetoothCryptoToolbox::testg2
  • Uninitialized variable in L2CAPSignalingClass::handleSecurityData (fixed by Fix warnings #302)
  • Unenumerated case in ArduinoBLE/src/utility/HCI.cpp (would be fixed by merge of fix(HCI): missing LE_Event_Mask #386)
I have a PR ready for fixing most of these warnings (all except the last one) in https://github.com//pull/302, but I haven't had luck getting any traction on getting that reviewed

If someone could review that PR most of these things would be fixed.

If someone tells me what 0x0A means in that unenumerated case, I'm happy to add that to the enum as well

Additional context

Additional reports

Related

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions