build: silence unused var/func warnings

This commit is contained in:
Danny Robson 2016-10-11 21:43:07 +11:00
parent 5a810010fe
commit 98350fedab
3 changed files with 4 additions and 1 deletions

View File

@ -41,6 +41,7 @@ namespace util::alloc {
auto
allocate (size_t bytes, size_t alignment)
{
(void)alignment;
CHECK_EQ (alignment, m_alignment);
return m_successor.allocate (bytes, m_alignment);
}
@ -58,6 +59,7 @@ namespace util::alloc {
auto
deallocate (void *ptr, size_t bytes, size_t alignment)
{
(void)alignment;
CHECK_EQ (alignment, m_alignment);
return m_successor.deallocate (ptr, bytes, m_alignment);
}

View File

@ -392,6 +392,7 @@ ice::scheduleBuild (std::array<uint16_t,4> &kb,
void
ice::set (const uint64_t *_key_first, const uint64_t *_key_last)
{
(void)_key_last;
CHECK_EQ ((unsigned)(_key_last - _key_first), m_size);
auto key = reinterpret_cast<const uint8_t*> (_key_first);

View File

@ -57,7 +57,7 @@ find_terminfo_path (const std::experimental::filesystem::path &dir,
// throws an exception if not found
static
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.
if (const char *dir = getenv ("TERMINFO")) {