Skip to content

Commit

Permalink
Have dummy_forced_read only if it's used (#11848)
Browse files Browse the repository at this point in the history
  • Loading branch information
maskit authored Nov 19, 2024
1 parent f9aabac commit ede5246
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/tscore/ink_queue.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit ede5246

Please sign in to comment.