From 6e60cb25b0b6efbe98088b45496e4418162231e0 Mon Sep 17 00:00:00 2001 From: maek Date: Wed, 29 Jun 2011 13:37:07 +0200 Subject: [PATCH] Fixed unused function warning when not using runtime configuration of pdu ids in can if. --- communication/CanIf/CanIf.c | 22 +++++++++------------- 1 file changed, 9 insertions(+), 13 deletions(-) diff --git a/communication/CanIf/CanIf.c b/communication/CanIf/CanIf.c index 23e317e2..11dc912c 100644 --- a/communication/CanIf/CanIf.c +++ b/communication/CanIf/CanIf.c @@ -346,22 +346,18 @@ static const CanIf_TxPduConfigType * CanIf_FindTxPduEntry(PduIdType id) } else { return &CanIf_ConfigPtr->InitConfig->CanIfTxPduConfigPtr[id]; } - } +} + #if ( CANIF_ARC_RUNTIME_PDU_CONFIGURATION == STD_ON ) -CanIf_RxPduConfigType * CanIf_FindRxPduEntry(PduIdType id) -#else -static const CanIf_RxPduConfigType * CanIf_FindRxPduEntry(PduIdType id) -#endif -{ - if (id >= CanIf_ConfigPtr->InitConfig->CanIfNumberOfCanRxPduIds) { - return NULL; - } else { - return &CanIf_ConfigPtr->InitConfig->CanIfRxPduConfigPtr[id]; - } -} +CanIf_RxPduConfigType * CanIf_FindRxPduEntry(PduIdType id) { + if (id >= CanIf_ConfigPtr->InitConfig->CanIfNumberOfCanRxPduIds) { + return NULL; + } else { + return &CanIf_ConfigPtr->InitConfig->CanIfRxPduConfigPtr[id]; + } +} -#if ( CANIF_ARC_RUNTIME_PDU_CONFIGURATION == STD_ON ) const CanIf_HrhConfigType* CanIf_Arc_GetReceiveHandler(CanIf_Arc_ChannelIdType Channel) { const CanIf_InitHohConfigType *hohConfig; const CanIf_HrhConfigType *hrhConfig; -- 2.39.2