2 Replies Latest reply on Jun 12, 2018 4:31 AM by capardogracielle_2279656

    meaning of code: (void)<variable>;

    capardogracielle_2279656

      What does this line of code do? (void)<variable>;

      Below is an example:

       

      case CYBLE_EVT_GAP_AUTH_COMPLETE:            

                  authInfo = (CYBLE_GAP_AUTH_INFO_T *)eventParam;

                  (void)authInfo;

                  DBG_PRINTF("AUTH_COMPLETE: security:%x, bonding:%x, ekeySize:%x, authErr %x \r\n",

                                          authInfo->security, authInfo->bonding, authInfo->ekeySize, authInfo->authErr);

                  break;