Enable -Wunused-function warning

This commit is contained in:
Nekotekina 2021-02-15 14:34:10 +03:00
parent 4c1026436f
commit 8e6e57de86
14 changed files with 18 additions and 94 deletions

View file

@ -40,11 +40,11 @@ namespace utils
#endif
#ifdef MADV_FREE
constexpr int c_madv_free = MADV_FREE;
[[maybe_unused]] constexpr int c_madv_free = MADV_FREE;
#elif defined(MADV_DONTNEED)
constexpr int c_madv_free = MADV_DONTNEED;
[[maybe_unused]] constexpr int c_madv_free = MADV_DONTNEED;
#else
constexpr int c_madv_free = 0;
[[maybe_unused]] constexpr int c_madv_free = 0;
#endif
#ifdef MADV_HUGEPAGE