Skip to content

Commit c4f9aaa

Browse files
committed
Fix warning for unused parameters
Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
1 parent 82cdead commit c4f9aaa

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

cores/arduino/stm32/lock_resource.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,9 @@ static inline void hsem_lock(uint32_t semID, uint32_t retry)
171171
}
172172
}
173173
}
174+
#else
175+
UNUSED(semID);
176+
UNUSED(retry);
174177
#endif /* STM32MP1xx || STM32WBxx */
175178
}
176179

@@ -185,6 +188,8 @@ static inline void hsem_unlock(uint32_t semID)
185188
if ((semID) <= HSEM_SEMID_MAX) {
186189
LL_HSEM_ReleaseLock(HSEM, semID, 0);
187190
}
191+
#else
192+
UNUSED(semID);
188193
#endif /* STM32MP1xx || STM32WBxx */
189194
}
190195

0 commit comments

Comments
 (0)