summaryrefslogtreecommitdiff
path: root/extra
diff options
context:
space:
mode:
authorIvan Maidanski <ivmai@mail.ru>2023-03-20 09:07:31 +0300
committerIvan Maidanski <ivmai@mail.ru>2023-03-20 12:08:09 +0300
commit5480d3dbdff91c6ee119f716ba0d0be626b0d84e (patch)
tree7e9be4bb1aea92c1e87285321284553b39193227 /extra
parent441698c68a90caa1670e9b46275c5db12668d171 (diff)
downloadbdwgc-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.c6
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;
}