fixed unused-variable warnings

This commit is contained in:
akallabeth 2024-02-20 10:36:40 +01:00 committed by akallabeth
parent 43eae6029f
commit 05e555feb7
6 changed files with 4 additions and 7 deletions

View File

@ -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
{

View File

@ -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;

View File

@ -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;

View File

@ -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 };

View File

@ -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)

View File

@ -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);