Fixed Wformat warnings

This commit is contained in:
akallabeth 2022-11-14 10:58:37 +01:00 committed by Bernhard Miklautz
parent 7e31b877fc
commit 3ddf99ad64
3 changed files with 5 additions and 3 deletions

View File

@ -485,7 +485,7 @@ int TestClientRdpFile(int argc, char* argv[])
puValue = (const UINT32*)freerdp_settings_get_pointer_array(settings, FreeRDP_MonitorIds, 0);
if (!puValue)
{
printf("FreeRDP_MonitorIds has invalid value %p", puValue);
printf("FreeRDP_MonitorIds has invalid value %p", (const void*)puValue);
goto fail;
}
if ((puValue[0] != 3) || (puValue[1] != 2) || (puValue[2] != 42) || (puValue[3] != 23))

View File

@ -38,7 +38,8 @@ static BOOL test_entry_read_write(void)
sr = Stream_New(NULL, 1024);
if (!sr || !sw)
{
fprintf(stderr, "[%s] Could not create iostreams sw=%p, sr=%p\n", __FUNCTION__, sw, sr);
fprintf(stderr, "[%s] Could not create iostreams sw=%p, sr=%p\n", __FUNCTION__, (void*)sw,
(void*)sr);
goto fail;
}

View File

@ -82,7 +82,8 @@ int TestString(int argc, char* argv[])
if (p != NULL)
{
printf("_wcschr error: return value mismatch: Actual: %p, Expected: NULL\n", p);
printf("_wcschr error: return value mismatch: Actual: %p, Expected: NULL\n",
(const void*)p);
return -1;
}