Skip to content

Commit 08a08c6

Browse files
committed
Fix unused parameters warning in heap_useNewlib_ST.c
Signed-off-by: Frederic Pillon <[email protected]>
1 parent 4b76cae commit 08a08c6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

portable/MemMang/heap_useNewlib_ST.c

+3
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,7 @@ char * _sbrk(int incr) { return sbrk(incr); };
209209
static UBaseType_t malLock_uxSavedInterruptStatus;
210210
#endif
211211
void __malloc_lock(struct _reent *r) {
212+
UNUSED(r);
212213
#if defined(MALLOCS_INSIDE_ISRs)
213214
DRN_ENTER_CRITICAL_SECTION(malLock_uxSavedInterruptStatus);
214215
#else
@@ -218,6 +219,7 @@ void __malloc_lock(struct _reent *r) {
218219
#endif
219220
};
220221
void __malloc_unlock(struct _reent *r) {
222+
UNUSED(r);
221223
#if defined(MALLOCS_INSIDE_ISRs)
222224
DRN_EXIT_CRITICAL_SECTION(malLock_uxSavedInterruptStatus);
223225
#else
@@ -250,6 +252,7 @@ void __env_unlock() { (void)xTaskResumeAll(); };
250252
return p;
251253
};
252254
void *__wrap__malloc_r(void *reent, size_t nbytes) {
255+
UNUSED(reent);
253256
extern void * __real__malloc_r(size_t nbytes);
254257
if(!inside_malloc) {
255258
MallocCallCnt++;

0 commit comments

Comments
 (0)