build: silence unused var/func warnings
This commit is contained in:
parent
5a810010fe
commit
98350fedab
@ -41,6 +41,7 @@ namespace util::alloc {
|
|||||||
auto
|
auto
|
||||||
allocate (size_t bytes, size_t alignment)
|
allocate (size_t bytes, size_t alignment)
|
||||||
{
|
{
|
||||||
|
(void)alignment;
|
||||||
CHECK_EQ (alignment, m_alignment);
|
CHECK_EQ (alignment, m_alignment);
|
||||||
return m_successor.allocate (bytes, m_alignment);
|
return m_successor.allocate (bytes, m_alignment);
|
||||||
}
|
}
|
||||||
@ -58,6 +59,7 @@ namespace util::alloc {
|
|||||||
auto
|
auto
|
||||||
deallocate (void *ptr, size_t bytes, size_t alignment)
|
deallocate (void *ptr, size_t bytes, size_t alignment)
|
||||||
{
|
{
|
||||||
|
(void)alignment;
|
||||||
CHECK_EQ (alignment, m_alignment);
|
CHECK_EQ (alignment, m_alignment);
|
||||||
return m_successor.deallocate (ptr, bytes, m_alignment);
|
return m_successor.deallocate (ptr, bytes, m_alignment);
|
||||||
}
|
}
|
||||||
|
@ -392,6 +392,7 @@ ice::scheduleBuild (std::array<uint16_t,4> &kb,
|
|||||||
void
|
void
|
||||||
ice::set (const uint64_t *_key_first, const uint64_t *_key_last)
|
ice::set (const uint64_t *_key_first, const uint64_t *_key_last)
|
||||||
{
|
{
|
||||||
|
(void)_key_last;
|
||||||
CHECK_EQ ((unsigned)(_key_last - _key_first), m_size);
|
CHECK_EQ ((unsigned)(_key_last - _key_first), m_size);
|
||||||
|
|
||||||
auto key = reinterpret_cast<const uint8_t*> (_key_first);
|
auto key = reinterpret_cast<const uint8_t*> (_key_first);
|
||||||
|
2
term.cpp
2
term.cpp
@ -57,7 +57,7 @@ find_terminfo_path (const std::experimental::filesystem::path &dir,
|
|||||||
// throws an exception if not found
|
// throws an exception if not found
|
||||||
static
|
static
|
||||||
std::experimental::filesystem::path
|
std::experimental::filesystem::path
|
||||||
find_terminfo_path (const std::string &key)
|
find_terminfo_path [[gnu::unused]] (const std::string &key)
|
||||||
{
|
{
|
||||||
// check if the path is explicitly listed. must not fall through.
|
// check if the path is explicitly listed. must not fall through.
|
||||||
if (const char *dir = getenv ("TERMINFO")) {
|
if (const char *dir = getenv ("TERMINFO")) {
|
||||||
|
Loading…
Reference in New Issue
Block a user