os: silence a maybe-uninit warning

This commit is contained in:
Michael Scire 2022-04-16 12:28:21 -07:00
parent 02b126c2be
commit 175a34da43

View file

@ -38,7 +38,7 @@ namespace ams::os {
AMS_ASSERT(multi_wait->state == MultiWaitType::State_Initialized); AMS_ASSERT(multi_wait->state == MultiWaitType::State_Initialized);
AMS_ASSERT(impl.IsListNotEmpty()); AMS_ASSERT(impl.IsListNotEmpty());
impl::MultiWaitHolderBase *holder_base; impl::MultiWaitHolderBase *holder_base = nullptr;
ON_SCOPE_EXIT { *out = CastToMultiWaitHolder(holder_base); }; ON_SCOPE_EXIT { *out = CastToMultiWaitHolder(holder_base); };
R_RETURN(impl.ReplyAndReceive(std::addressof(holder_base), reply_target)); R_RETURN(impl.ReplyAndReceive(std::addressof(holder_base), reply_target));