Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 778bf9d

Browse filesBrowse files
committed
Fix unused parameters warning in heap_useNewlib_ST.c
Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
1 parent 4b76cae commit 778bf9d
Copy full SHA for 778bf9d

File tree

Expand file treeCollapse file tree

1 file changed

+3
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-0
lines changed

‎portable/MemMang/heap_useNewlib_ST.c

Copy file name to clipboardExpand all lines: portable/MemMang/heap_useNewlib_ST.c
+3Lines changed: 3 additions & 0 deletions
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+
(void)(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+
(void)(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+
(void)(reent);
253256
extern void * __real__malloc_r(size_t nbytes);
254257
if(!inside_malloc) {
255258
MallocCallCnt++;

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.