Fixed format string warnings.
This commit is contained in:
parent
9a60d2feb0
commit
ebf44f80eb
@ -93,8 +93,8 @@ static BOOL test_RGBToRGB_16s8u_P3AC4R_func(prim_size_t roi, DWORD DstFormat)
|
|||||||
|
|
||||||
if (o1 != o2)
|
if (o1 != o2)
|
||||||
{
|
{
|
||||||
printf("RGBToRGB_16s8u_P3AC4R FAIL: out1[%d]=0x%08" PRIx32 " out2[%d]=0x%08" PRIx32
|
printf("RGBToRGB_16s8u_P3AC4R FAIL: out1[%" PRIu64 "]=0x%08" PRIx8 " out2[%" PRIu64
|
||||||
"\n",
|
"]=0x%08" PRIx8 "\n",
|
||||||
i, out1[i], i, out2[i]);
|
i, out1[i], i, out2[i]);
|
||||||
failed = TRUE;
|
failed = TRUE;
|
||||||
}
|
}
|
||||||
|
@ -433,7 +433,7 @@ static BOOL test_ConvertToUnicode_wrapper(void)
|
|||||||
}
|
}
|
||||||
if ((i = _wcslen(dst)) != 16)
|
if ((i = _wcslen(dst)) != 16)
|
||||||
{
|
{
|
||||||
fprintf(stderr, "ConvertToUnicode failure A3: dst length is %d instead of 16\n", i);
|
fprintf(stderr, "ConvertToUnicode failure A3: dst length is %" PRIuz " instead of 16\n", i);
|
||||||
goto fail;
|
goto fail;
|
||||||
}
|
}
|
||||||
if (_wcscmp(dst, (const WCHAR*)cmp0))
|
if (_wcscmp(dst, (const WCHAR*)cmp0))
|
||||||
@ -455,7 +455,8 @@ static BOOL test_ConvertToUnicode_wrapper(void)
|
|||||||
i = ConvertToUnicode(CP_UTF8, 0, src2, -1, &dst, 0);
|
i = ConvertToUnicode(CP_UTF8, 0, src2, -1, &dst, 0);
|
||||||
if (i != 17)
|
if (i != 17)
|
||||||
{
|
{
|
||||||
fprintf(stderr, "ConvertToUnicode failure B1: unexpectedly returned %d instead of 17\n", i);
|
fprintf(stderr,
|
||||||
|
"ConvertToUnicode failure B1: unexpectedly returned %" PRIuz " instead of 17\n", i);
|
||||||
goto fail;
|
goto fail;
|
||||||
}
|
}
|
||||||
if (dst == NULL)
|
if (dst == NULL)
|
||||||
@ -465,7 +466,7 @@ static BOOL test_ConvertToUnicode_wrapper(void)
|
|||||||
}
|
}
|
||||||
if ((i = _wcslen(dst)) != 16)
|
if ((i = _wcslen(dst)) != 16)
|
||||||
{
|
{
|
||||||
fprintf(stderr, "ConvertToUnicode failure B3: dst length is %d instead of 16\n", i);
|
fprintf(stderr, "ConvertToUnicode failure B3: dst length is %" PRIuz " instead of 16\n", i);
|
||||||
goto fail;
|
goto fail;
|
||||||
}
|
}
|
||||||
if (_wcscmp(dst, (WCHAR*)cmp0))
|
if (_wcscmp(dst, (WCHAR*)cmp0))
|
||||||
@ -490,6 +491,9 @@ fail:
|
|||||||
|
|
||||||
int TestUnicodeConversion(int argc, char* argv[])
|
int TestUnicodeConversion(int argc, char* argv[])
|
||||||
{
|
{
|
||||||
|
WINPR_UNUSED(argc);
|
||||||
|
WINPR_UNUSED(argv);
|
||||||
|
|
||||||
/* Letters */
|
/* Letters */
|
||||||
|
|
||||||
printf("Letters\n");
|
printf("Letters\n");
|
||||||
|
Loading…
Reference in New Issue
Block a user