BLE_API for nRF51

Fork of BLE_API by Bluetooth Low Energy

Revision:
734:4872b70437ce
Parent:
716:11b41f651697
Child:
735:15bfcec377d5
--- a/ble/SecurityManager.h	Mon Jul 06 10:10:35 2015 +0100
+++ b/ble/SecurityManager.h	Mon Jul 06 10:10:35 2015 +0100
@@ -105,6 +105,12 @@
                              bool                     requireMITM   = true,
                              SecurityIOCapabilities_t iocaps        = IO_CAPS_NONE,
                              const Passkey_t          passkey       = NULL) {
+        /* avoid compiler warnings about unused variables */
+        (void)enableBonding;
+        (void)requireMITM;
+        (void)iocaps;
+        (void)passkey;
+
         return BLE_ERROR_NOT_IMPLEMENTED; /* default implementation; override this if security is supported. */
     }
 
@@ -117,6 +123,10 @@
      * @return BLE_SUCCESS Or appropriate error code indicating reason for failure.
      */
     virtual ble_error_t getLinkSecurity(Gap::Handle_t connectionHandle, LinkSecurityStatus_t *securityStatusP) {
+        /* avoid compiler warnings about unused variables */
+        (void)connectionHandle;
+        (void)securityStatusP;
+
         return BLE_ERROR_NOT_IMPLEMENTED; /* default implementation; override this if security is supported. */
     }