summaryrefslogtreecommitdiff
path: root/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'util.c')
-rw-r--r--util.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/util.c b/util.c
index b6acab49b9..edd51b540d 100644
--- a/util.c
+++ b/util.c
@@ -258,11 +258,13 @@ Perl_safesyscalloc(MEM_SIZE count, MEM_SIZE size)
{
dTHX;
Malloc_t ptr;
+#ifdef DEBUGGING
const MEM_SIZE total_size = size * count
-#ifdef PERL_TRACK_MEMPOOL
+#ifdef PERL_TRACK_MEMPOOL
+ sTHX
#endif
;
+#endif
#ifdef HAS_64K_LIMIT
if (total_size > 0xffff) {