diff options
author | Jack Lloyd <[email protected]> | 2016-11-27 15:26:38 -0500 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2016-11-27 15:26:38 -0500 |
commit | 1542134438b20e2f0291edf0769bf2639580020a (patch) | |
tree | c6ad07d0a93d2c7faf958313669e148c294d96f7 | |
parent | af48afb7bba36f94285ffa9cfafac3a761becad8 (diff) |
Add BOTAN_UNUSED when relevant OS support is missing
-rw-r--r-- | src/lib/utils/filesystem.cpp | 1 | ||||
-rw-r--r-- | src/lib/utils/os_utils.cpp | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/utils/filesystem.cpp b/src/lib/utils/filesystem.cpp index c67668288..36e1f5446 100644 --- a/src/lib/utils/filesystem.cpp +++ b/src/lib/utils/filesystem.cpp @@ -118,6 +118,7 @@ std::vector<std::string> get_files_recursive(const std::string& dir) #elif defined(BOTAN_TARGET_OS_HAS_READDIR) files = impl_readdir(dir); #else + BOTAN_UNUSED(dir); throw No_Filesystem_Access(); #endif diff --git a/src/lib/utils/os_utils.cpp b/src/lib/utils/os_utils.cpp index f40426613..1e60596ba 100644 --- a/src/lib/utils/os_utils.cpp +++ b/src/lib/utils/os_utils.cpp @@ -273,6 +273,7 @@ void* allocate_locked_pages(size_t length) return ptr; #else + BOTAN_UNUSED(length); return nullptr; /* not implemented */ #endif } |