diff options
author | Ivan Maidanski <ivmai@mail.ru> | 2023-03-20 09:07:31 +0300 |
---|---|---|
committer | Ivan Maidanski <ivmai@mail.ru> | 2023-03-20 12:08:09 +0300 |
commit | 5480d3dbdff91c6ee119f716ba0d0be626b0d84e (patch) | |
tree | 7e9be4bb1aea92c1e87285321284553b39193227 /extra | |
parent | 441698c68a90caa1670e9b46275c5db12668d171 (diff) | |
download | bdwgc-5480d3dbdff91c6ee119f716ba0d0be626b0d84e.tar.gz |
Fix 'totalMemoryUsed is assigned but never used' cppcheck warn in MacOS.c
(fix of commit 5871f287e)
* extra/MacOS.c [USE_TEMPORARY_MEMORY && !SHARED_LIBRARY_BUILD]
(GC_MacFreeTemporaryMemory): Remove totalMemoryUsed local variable; do
not call GetHandleSize().
Diffstat (limited to 'extra')
-rw-r--r-- | extra/MacOS.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/extra/MacOS.c b/extra/MacOS.c index 9bdaab9f..a2a978a6 100644 --- a/extra/MacOS.c +++ b/extra/MacOS.c @@ -122,15 +122,9 @@ void GC_MacFreeTemporaryMemory(void) # endif if (theTemporaryMemory != NULL) { -# if !defined(SHARED_LIBRARY_BUILD) - long totalMemoryUsed = 0; -# endif TemporaryMemoryHandle tempMemBlock = theTemporaryMemory; while (tempMemBlock /* != NULL */) { TemporaryMemoryHandle nextBlock = (**tempMemBlock).nextBlock; -# if !defined(SHARED_LIBRARY_BUILD) - totalMemoryUsed += GetHandleSize((Handle)tempMemBlock); -# endif DisposeHandle((Handle)tempMemBlock); tempMemBlock = nextBlock; } |