Skip to content

Commit 2e37939

Browse files
committed
Fix a couple more build warnings
1 parent 4bc0f82 commit 2e37939

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

cppwinrt/component_writers.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,7 @@ int32_t __stdcall WINRT_GetActivationFactory(void* classId, void** factory) noex
198198
}
199199
200200
#ifdef _WRL_MODULE_H_
201+
#pragma warning(suppress: 4324) // structure was padded due to alignment specifier
201202
return ::Microsoft::WRL::Module<::Microsoft::WRL::InProc>::GetModule().GetActivationFactory(static_cast<HSTRING>(classId), reinterpret_cast<::IActivationFactory**>(factory));
202203
#else
203204
return winrt::hresult_class_not_available(name).to_abi();

natvis/object_visualizer.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -613,7 +613,6 @@ std::wstring string_to_wstring(std::string_view const& str)
613613

614614
std::wstring result(size, L'?');
615615
auto size_result = MultiByteToWideChar(CP_UTF8, 0, str.data(), static_cast<int>(str.size()), result.data(), size);
616-
XLANG_ASSERT(size == size_result);
617616
return result;
618617
}
619618

0 commit comments

Comments
 (0)