This is an automated email from the ASF dual-hosted git repository.
maskit pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficserver.git
The following commit(s) were added to refs/heads/master by this push:
new ede524661a Have dummy_forced_read only if it's used (#11848)
ede524661a is described below
commit ede524661ad615eb3a6486baa17dd23a563cea10
Author: Masakazu Kitajo <[email protected]>
AuthorDate: Tue Nov 19 11:18:18 2024 -0700
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 1de6d7909b..9ddee36541 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<void>(*const_cast<int volatile *>(reinterpret_cast<int *>(mem)));
}
+#endif
} // end anonymous namespace