ywkaras commented on code in PR #9183:
URL: https://github.com/apache/trafficserver/pull/9183#discussion_r1123949772
##########
src/tscore/ink_queue.cc:
##########
@@ -94,6 +94,12 @@ static const ink_freelist_ops *default_ops = &freelist_ops;
static ink_freelist_list *freelists = nullptr;
static const ink_freelist_ops *freelist_global_ops = default_ops;
+inline void
+dummy_forced_read(void *mem)
+{
+ static_cast<void>(*const_cast<int volatile *>(reinterpret_cast<int *>(mem)));
Review Comment:
cppreference.com as much as I does not seem to have gotten the memo you got
about `[[maybe_unused]]`:
https://en.cppreference.com/w/cpp/language/attributes/maybe_unused
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]