Fix all possible warnings about unused timerNext_us argument
This commit is contained in:
parent
0f7b3e2d17
commit
7c13199a1a
10 changed files with 21 additions and 3 deletions
|
|
@ -265,6 +265,7 @@ void CO_EM_process(
|
|||
uint16_t emInhTime_100us,
|
||||
uint32_t *timerNext_us)
|
||||
{
|
||||
(void)timerNext_us; /* may be unused */
|
||||
|
||||
CO_EM_t *em = emPr->em;
|
||||
uint8_t errorRegister;
|
||||
|
|
|
|||
|
|
@ -317,6 +317,8 @@ void CO_HBconsumer_process(
|
|||
uint32_t timeDifference_us,
|
||||
uint32_t *timerNext_us)
|
||||
{
|
||||
(void)timerNext_us; /* may be unused */
|
||||
|
||||
uint8_t i;
|
||||
bool_t allMonitoredActiveCurrent = true;
|
||||
uint8_t allMonitoredOperationalCurrent = CO_NMT_OPERATIONAL;
|
||||
|
|
|
|||
|
|
@ -206,6 +206,8 @@ CO_NMT_reset_cmd_t CO_NMT_process(
|
|||
const uint8_t errorBehavior[],
|
||||
uint32_t *timerNext_us)
|
||||
{
|
||||
(void)timerNext_us; /* may be unused */
|
||||
|
||||
uint8_t CANpassive;
|
||||
CO_NMT_internalState_t currentOperatingState = NMT->operatingState;
|
||||
uint32_t HBtime = (uint32_t)HBtime_ms * 1000;
|
||||
|
|
|
|||
|
|
@ -1026,6 +1026,8 @@ void CO_TPDO_process(
|
|||
uint32_t timeDifference_us,
|
||||
uint32_t *timerNext_us)
|
||||
{
|
||||
(void)timerNext_us; /* may be unused */
|
||||
|
||||
/* update timers */
|
||||
TPDO->inhibitTimer = (TPDO->inhibitTimer > timeDifference_us) ? (TPDO->inhibitTimer - timeDifference_us) : 0;
|
||||
TPDO->eventTimer = (TPDO->eventTimer > timeDifference_us) ? (TPDO->eventTimer - timeDifference_us) : 0;
|
||||
|
|
|
|||
|
|
@ -382,6 +382,8 @@ CO_SDOclient_return_t CO_SDOclientDownload(CO_SDOclient_t *SDO_C,
|
|||
size_t *sizeTransferred,
|
||||
uint32_t *timerNext_us)
|
||||
{
|
||||
(void)timerNext_us; /* may be unused */
|
||||
|
||||
CO_SDOclient_return_t ret = CO_SDOcli_waitingServerResponse;
|
||||
CO_SDO_abortCode_t abortCode = CO_SDO_AB_NONE;
|
||||
|
||||
|
|
@ -904,6 +906,8 @@ CO_SDOclient_return_t CO_SDOclientUpload(CO_SDOclient_t *SDO_C,
|
|||
size_t *sizeTransferred,
|
||||
uint32_t *timerNext_us)
|
||||
{
|
||||
(void)timerNext_us; /* may be unused */
|
||||
|
||||
CO_SDOclient_return_t ret = CO_SDOcli_waitingServerResponse;
|
||||
CO_SDO_abortCode_t abortCode = CO_SDO_AB_NONE;
|
||||
|
||||
|
|
|
|||
|
|
@ -669,6 +669,8 @@ uint32_t CO_SDO_writeOD(CO_SDO_t *SDO, uint16_t length){
|
|||
|
||||
/******************************************************************************/
|
||||
static void CO_SDO_process_done(CO_SDO_t *SDO, uint32_t *timerNext_us) {
|
||||
(void)timerNext_us; /* may be unused */
|
||||
|
||||
#if CO_SDO_RX_DATA_SIZE > 1
|
||||
uint8_t proc = SDO->CANrxProc;
|
||||
uint8_t newProc = proc;
|
||||
|
|
@ -684,7 +686,6 @@ static void CO_SDO_process_done(CO_SDO_t *SDO, uint32_t *timerNext_us) {
|
|||
timerNext_us = 0; /* Set timerNext_us to 0 to inform OS to call CO_SDO_process function again without delay. */
|
||||
#endif
|
||||
#else
|
||||
(void)(timerNext_us);
|
||||
CO_FLAG_CLEAR(SDO->CANrxNew[0]);
|
||||
#endif
|
||||
}
|
||||
|
|
|
|||
|
|
@ -353,6 +353,8 @@ CO_SYNC_status_t CO_SYNC_process(
|
|||
uint32_t ObjDict_synchronousWindowLength,
|
||||
uint32_t *timerNext_us)
|
||||
{
|
||||
(void)timerNext_us; /* may be unused */
|
||||
|
||||
CO_SYNC_status_t ret = CO_SYNC_NONE;
|
||||
uint32_t timerNew;
|
||||
|
||||
|
|
|
|||
|
|
@ -56,6 +56,8 @@ void CO_LEDs_process(CO_LEDs_t *LEDs,
|
|||
bool_t firmwareDownload,
|
||||
uint32_t *timerNext_us)
|
||||
{
|
||||
(void)timerNext_us; /* may be unused */
|
||||
|
||||
uint8_t rd = 0;
|
||||
uint8_t gr = 0;
|
||||
bool_t tick = false;
|
||||
|
|
|
|||
|
|
@ -598,6 +598,8 @@ void CO_SRDO_process(
|
|||
uint32_t timeDifference_us,
|
||||
uint32_t *timerNext_us)
|
||||
{
|
||||
(void)timerNext_us; /* may be unused */
|
||||
|
||||
if(commands & (1<<1)){
|
||||
uint16_t crcValue = CO_SRDOcalcCrc(SRDO->SRDOCommPar, SRDO->SRDOMapPar);
|
||||
if (*SRDO->checksum != crcValue)
|
||||
|
|
@ -648,8 +650,6 @@ void CO_SRDO_process(
|
|||
break;
|
||||
}
|
||||
}
|
||||
#else
|
||||
(void)timerNext_us;
|
||||
#endif
|
||||
if(data_ok){
|
||||
/* Copy data from Object dictionary. */
|
||||
|
|
|
|||
|
|
@ -578,6 +578,8 @@ void CO_GTWA_process(CO_GTWA_t *gtwa,
|
|||
uint32_t timeDifference_us,
|
||||
uint32_t *timerNext_us)
|
||||
{
|
||||
(void)timerNext_us; /* may be unused */
|
||||
|
||||
bool_t err = false; /* syntax or other error, true or false, I/O variable */
|
||||
char closed; /* indication of command delimiter, I/O variable */
|
||||
CO_GTWA_respErrorCode_t respErrorCode = CO_GTWA_respErrorNone;
|
||||
|
|
|
|||
Loading…
Reference in a new issue