diff --git a/client/common/test/TestClientRdpFile.c b/client/common/test/TestClientRdpFile.c index 338e30c6c..3113efb25 100644 --- a/client/common/test/TestClientRdpFile.c +++ b/client/common/test/TestClientRdpFile.c @@ -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)) diff --git a/libfreerdp/core/test/TestStreamDump.c b/libfreerdp/core/test/TestStreamDump.c index 71528daa1..b3179f033 100644 --- a/libfreerdp/core/test/TestStreamDump.c +++ b/libfreerdp/core/test/TestStreamDump.c @@ -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; } diff --git a/winpr/libwinpr/crt/test/TestString.c b/winpr/libwinpr/crt/test/TestString.c index ebc131ab9..2d284aeac 100644 --- a/winpr/libwinpr/crt/test/TestString.c +++ b/winpr/libwinpr/crt/test/TestString.c @@ -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; }