vpetrigo/caches

cache_policy.hpp raises warning when compiled with -Wunused-parameter

mrichmon opened this issue · 1 comments

The line:
https://github.com/vpetrigo/caches/blob/6fd6d318b74ea4400fab3142fb61862d8a8252e3/include/cache_policy.hpp#LL67C5-L67C49

produces an unused parameter warning when compiled with -Wunused-parameter.

Suggest changing this line to the following to disable the warning only on this method signature.

void Touch(__attribute__((unused)) const Key &key) noexcept override

Added PR to address this issue: #28