This is an automated email from the ASF dual-hosted git repository. cmcfarlen pushed a commit to branch 10.0.x in repository https://gitbox.apache.org/repos/asf/trafficserver.git
commit ff313a3a06dedb2cd6ddec18972cf4ea2253e505 Author: Masakazu Kitajo <[email protected]> AuthorDate: Tue Nov 19 11:18:18 2024 -0700 Have dummy_forced_read only if it's used (#11848) (cherry picked from commit ede524661ad615eb3a6486baa17dd23a563cea10) --- 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
