diff --git a/client/X11/xf_window.c b/client/X11/xf_window.c index 38eb3cdc8..a5e68c765 100644 --- a/client/X11/xf_window.c +++ b/client/X11/xf_window.c @@ -524,9 +524,11 @@ xfWindow* xf_CreateDesktopWindow(xfContext* xfc, char* name, int width, int heig int rc = ftruncate(window->shmid, sizeof(window->handle)); if (rc != 0) { +#ifdef WITH_DEBUG_X11 char ebuffer[256] = { 0 }; DEBUG_X11("ftruncate failed with %s [%d]", winpr_strerror(rc, ebuffer, sizeof(ebuffer)), rc); +#endif } else { diff --git a/libfreerdp/codec/nsc_encode.c b/libfreerdp/codec/nsc_encode.c index a56e9181a..71393d9f7 100644 --- a/libfreerdp/codec/nsc_encode.c +++ b/libfreerdp/codec/nsc_encode.c @@ -116,8 +116,6 @@ static BOOL nsc_encode_argb_to_aycocg(NSC_CONTEXT* context, const BYTE* data, UI UINT16 rw = 0; BYTE ccl = 0; const BYTE* src = NULL; - const UINT32* src_32 = NULL; - const UINT16* src_16 = NULL; BYTE* yplane = NULL; BYTE* coplane = NULL; BYTE* cgplane = NULL; diff --git a/libfreerdp/codec/rfx_encode.c b/libfreerdp/codec/rfx_encode.c index 10d4a414a..12bc77bda 100644 --- a/libfreerdp/codec/rfx_encode.c +++ b/libfreerdp/codec/rfx_encode.c @@ -46,8 +46,6 @@ static void rfx_encode_format_rgb(const BYTE* rgb_data, int width, int height, i int x_exceed = 0; int y_exceed = 0; const BYTE* src = NULL; - const UINT32* src_32 = NULL; - const UINT16* src_16 = NULL; INT16 r = 0; INT16 g = 0; INT16 b = 0; diff --git a/libfreerdp/core/nla.c b/libfreerdp/core/nla.c index 48bb65b90..ddee30694 100644 --- a/libfreerdp/core/nla.c +++ b/libfreerdp/core/nla.c @@ -1350,7 +1350,6 @@ static BOOL nla_read_ts_credentials(rdpNla* nla, SecBuffer* data) } /* supplementalCreds [1] SEQUENCE OF TSRemoteGuardPackageCred OPTIONAL, */ - MSV1_0_SUPPLEMENTAL_CREDENTIAL ntlmCreds = { 0 }; MSV1_0_SUPPLEMENTAL_CREDENTIAL* suppCreds = NULL; WinPrAsn1Decoder suppCredsSeq = { 0 }; diff --git a/libfreerdp/primitives/primitives.c b/libfreerdp/primitives/primitives.c index 18d5e108f..da8bd4019 100644 --- a/libfreerdp/primitives/primitives.c +++ b/libfreerdp/primitives/primitives.c @@ -200,7 +200,6 @@ static BOOL primitives_YUV_benchmark_run(primitives_YUV_benchmark* bench, primit static BOOL primitives_autodetect_best(primitives_t* prims) { BOOL ret = FALSE; - UINT64 benchDuration = 150; /* 150 ms */ struct prim_benchmark { const char* name; @@ -235,6 +234,7 @@ static BOOL primitives_autodetect_best(primitives_t* prims) } #else { + UINT64 benchDuration = 150; /* 150 ms */ primitives_YUV_benchmark bench = { 0 }; primitives_YUV_benchmark* yuvBench = primitives_YUV_benchmark_init(&bench); if (!yuvBench) diff --git a/server/Sample/sfreerdp.c b/server/Sample/sfreerdp.c index 0cdd19d68..f39a74760 100644 --- a/server/Sample/sfreerdp.c +++ b/server/Sample/sfreerdp.c @@ -462,7 +462,7 @@ static void test_peer_draw_icon(freerdp_peer* client, UINT32 x, UINT32 y) { const UINT32 colorFormat = context->image->bitsPerPixel > 24 ? PIXEL_FORMAT_BGRA32 : PIXEL_FORMAT_BGR24; - const UINT32 bpp = FreeRDPGetBytesPerPixel(colorFormat); + if (RemoteFxCodec) { rfx_context_set_pixel_format(context->rfx_context, colorFormat);