Skip to content

Commit f494f7f

Browse files
committed
Fixing up some code analysis annotations to avoid warnings.
1 parent 9e57190 commit f494f7f

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

Release/src/http/client/http_client_winrt.cpp

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -250,8 +250,11 @@ class IRequestStream
250250
}
251251
}
252252

253-
virtual HRESULT STDMETHODCALLTYPE Write(const void *, _In_ ULONG, _Out_opt_ ULONG *)
253+
virtual HRESULT STDMETHODCALLTYPE Write(_In_reads_bytes_(cb) const void *pv, _In_ ULONG cb, _Out_opt_ ULONG *pcbWritten)
254254
{
255+
CASABLANCA_UNREFERENCED_PARAMETER(pv);
256+
CASABLANCA_UNREFERENCED_PARAMETER(cb);
257+
CASABLANCA_UNREFERENCED_PARAMETER(pcbWritten);
255258
return E_NOTIMPL;
256259
}
257260

@@ -333,8 +336,11 @@ class IResponseStream
333336
}
334337
}
335338

336-
virtual HRESULT STDMETHODCALLTYPE Read(void *, _In_ ULONG, _Out_ ULONG *)
339+
virtual HRESULT STDMETHODCALLTYPE Read(_Out_writes_bytes_to_(cb, *pcbRead) void *pv, _In_ ULONG cb, _Out_ ULONG *pcbRead)
337340
{
341+
CASABLANCA_UNREFERENCED_PARAMETER(pv);
342+
CASABLANCA_UNREFERENCED_PARAMETER(cb);
343+
CASABLANCA_UNREFERENCED_PARAMETER(pcbRead);
338344
return E_NOTIMPL;
339345
}
340346

0 commit comments

Comments
 (0)