Skip to content

Commit

Permalink
Eliminate 'unused parameter' gcc warning in free() if IGNORE_FREE
Browse files Browse the repository at this point in the history
(a cherry-pick of commit 6564edd from 'release-7_6')

PR #598 (bdwgc).

* malloc.c [REDIRECT_FREE] (free): Specify p is an unused argument.
  • Loading branch information
plajjan authored and ivmai committed Feb 3, 2024
1 parent ac5b31c commit c72e8f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion malloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -583,7 +583,7 @@ GC_API void GC_CALL GC_free(void * p)
#endif

#ifdef REDIRECT_FREE
void free(void * p)
void free(void * p GC_ATTR_UNUSED)
{
# if defined(GC_LINUX_THREADS) && !defined(USE_PROC_FOR_LIBRARIES)
{
Expand Down

0 comments on commit c72e8f6

Please sign in to comment.