From ede524661ad615eb3a6486baa17dd23a563cea10 Mon Sep 17 00:00:00 2001 From: Masakazu Kitajo Date: Tue, 19 Nov 2024 11:18:18 -0700 Subject: [PATCH] Have dummy_forced_read only if it's used (#11848) --- src/tscore/ink_queue.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/tscore/ink_queue.cc b/src/tscore/ink_queue.cc index 1de6d7909b1..9ddee365415 100644 --- a/src/tscore/ink_queue.cc +++ b/src/tscore/ink_queue.cc @@ -101,11 +101,13 @@ const ink_freelist_ops *freelist_global_ops = default_ops; DbgCtl dbg_ctl_freelist_init{"freelist_init"}; +#ifdef SANITY inline void dummy_forced_read(void *mem) { static_cast(*const_cast(reinterpret_cast(mem))); } +#endif } // end anonymous namespace