diff --git a/source/lib/debug_stl.cpp b/source/lib/debug_stl.cpp index ee62bbe906..693ed882ef 100644 --- a/source/lib/debug_stl.cpp +++ b/source/lib/debug_stl.cpp @@ -586,8 +586,15 @@ LibError debug_stl_get_container_info(const char* type_name, const u8* p, size_t size_t el_size, size_t* el_count, DebugStlIterator* el_iterator, void* it_mem) { #if MSC_VERSION >= 1400 + UNUSED2(type_name); + UNUSED2(p); + UNUSED2(size); + UNUSED2(el_size); + UNUSED2(el_count); + UNUSED2(el_iterator); + UNUSED2(it_mem); return ERR::STL_CNT_UNKNOWN; // NOWARN -#endif +#else bool handled = false, IsValid = false; #define CONTAINER(name, type_name_pattern)\ @@ -641,4 +648,6 @@ LibError debug_stl_get_container_info(const char* type_name, const u8* p, size_t if(!IsValid) return ERR::STL_CNT_INVALID; // NOWARN return INFO::OK; + +#endif } diff --git a/source/lib/file/io/io_align.h b/source/lib/file/io/io_align.h index 76e0becfa1..0e48b213d8 100644 --- a/source/lib/file/io/io_align.h +++ b/source/lib/file/io/io_align.h @@ -20,28 +20,28 @@ static const size_t SECTOR_SIZE = 4*KiB; template -bool IsAligned_Data(T* address) +inline bool IsAligned_Data(T* address) { return IsAligned((uintptr_t)address, SECTOR_SIZE); } -static bool IsAligned_Offset(off_t ofs) +inline bool IsAligned_Offset(off_t ofs) { return IsAligned(ofs, BLOCK_SIZE); } -static off_t AlignedOffset(off_t ofs) +inline off_t AlignedOffset(off_t ofs) { return round_down(ofs, (off_t)BLOCK_SIZE); } -static off_t AlignedSize(off_t size) +inline off_t AlignedSize(off_t size) { return round_up(size, (off_t)BLOCK_SIZE); } -static off_t PaddedSize(off_t size, off_t ofs) +inline off_t PaddedSize(off_t size, off_t ofs) { return round_up(size + ofs - AlignedOffset(ofs), (off_t)BLOCK_SIZE); } diff --git a/source/tools/atlas/GameInterface/Shareable.h b/source/tools/atlas/GameInterface/Shareable.h index f202f24b9c..b229f9bcb5 100644 --- a/source/tools/atlas/GameInterface/Shareable.h +++ b/source/tools/atlas/GameInterface/Shareable.h @@ -111,9 +111,9 @@ template struct static_assert_test{}; sizeof(REQUIRE_TYPE_TO_BE_SHAREABLE_FAILURE< T, (bool)(Shareable::TypeIsShareable) >)> \ static_assert_typedef_ -template const T* empty_str(); -template <> const char* empty_str() { return ""; } -template <> const wchar_t* empty_str() { return L""; } +template inline const T* empty_str(); +template <> inline const char* empty_str() { return ""; } +template <> inline const wchar_t* empty_str() { return L""; } // Shareable strings: template class Shareable< std::basic_string >