Skip to content

Commit 1a4a01b

Browse files
authored
[ClangCL] Fix warnings on PixTest.cpp (microsoft#5689)
1. signed unisgned compare warning. Fixed by change 1 into 1u. Or cast directly. 2. writeable string. Use const char/wchar_t * instead of char/wchar_t*. 3. lost const when cast. Add const.
1 parent 508abbc commit 1a4a01b

File tree

3 files changed

+149
-147
lines changed

3 files changed

+149
-147
lines changed

include/dxc/Test/DxcTestUtils.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -217,9 +217,10 @@ void WideToBlob(dxc::DxcDllSupport &dllSupport, const std::wstring &val,
217217
void WideToBlob(dxc::DxcDllSupport &dllSupport, const std::wstring &val,
218218
IDxcBlobEncoding **ppBlob);
219219
void VerifyCompileOK(dxc::DxcDllSupport &dllSupport, LPCSTR pText,
220-
LPWSTR pTargetProfile, LPCWSTR pArgs, IDxcBlob **ppResult);
220+
LPCWSTR pTargetProfile, LPCWSTR pArgs,
221+
IDxcBlob **ppResult);
221222
void VerifyCompileOK(dxc::DxcDllSupport &dllSupport, LPCSTR pText,
222-
LPWSTR pTargetProfile, std::vector<LPCWSTR> &args,
223+
LPCWSTR pTargetProfile, std::vector<LPCWSTR> &args,
223224
IDxcBlob **ppResult);
224225

225226
HRESULT GetVersion(dxc::DxcDllSupport &DllSupport, REFCLSID clsid,

0 commit comments

Comments
 (0)