Skip to content

Commit 1e50936

Browse files
committed
further fixes per review
1 parent 938373c commit 1e50936

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

src/lmic/lmic.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3081,7 +3081,7 @@ int LMIC_getNetworkTimeReference(lmic_time_reference_t *pReference) {
30813081
return 1;
30823082
}
30833083
#else
3084-
(void)pReference;
3084+
LMIC_API_PARAMETER(pReference);
30853085
#endif // LMIC_ENABLE_DeviceTimeReq
30863086
return 0;
30873087
}

src/lmic/lmic_compliance.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -658,7 +658,8 @@ void acSetTimer(ostime_t delay) {
658658
os_setTimedCallback(&LMIC_Compliance.timerJob, os_getTime() + delay, timerExpiredCb);
659659
}
660660

661-
static void timerExpiredCb(__attribute__((unused)) osjob_t *j) {
661+
static void timerExpiredCb(osjob_t *j) {
662+
LMIC_API_PARAMETER(j);
662663
LMIC_Compliance.eventflags |= LMIC_COMPLIANCE_EVENT_TIMER_EXPIRED;
663664
fsmEval();
664665
}
@@ -733,7 +734,9 @@ static void acSendUplink(void) {
733734
}
734735
}
735736

736-
static void sendUplinkCompleteCb(__attribute__((unused)) void *pUserData, __attribute__((unused)) int fSuccess) {
737+
static void sendUplinkCompleteCb(void *pUserData, int fSuccess) {
738+
LMIC_API_PARAMETER(pUserData);
739+
LMIC_API_PARAMETER(fSuccess);
737740
LMIC_Compliance.eventflags |= LMIC_COMPLIANCE_EVENT_UPLINK_COMPLETE;
738741
LMIC_COMPLIANCE_PRINTF("%s(%s)\n", __func__, LMICcompliance_txSuccessToString(fSuccess));
739742
fsmEvalDeferred();

0 commit comments

Comments
 (0)