Skip to content

Commit 0a0757e

Browse files
committed
FIX: warning: unreferenced local variable
1 parent f7a9e94 commit 0a0757e

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

src/os/win32/host-compositor.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -517,8 +517,8 @@ static REBXYF Zero_Pair = {0, 0};
517517

518518
REBSER *img = (REBSER*)GOB_CONTENT(gob);
519519
HDC hdc = ctx->back_DC;
520-
BITMAPINFO BitmapInfo = ctx->bmpInfo;
521-
REBINT mode;
520+
// BITMAPINFO BitmapInfo = ctx->bmpInfo;
521+
// REBINT mode;
522522
REBINT src_siz_x = IMG_WIDE(img); // real image size
523523
REBINT src_siz_y = IMG_HIGH(img);
524524

src/os/win32/host-window.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
** REBOL [R3] Language Interpreter and Run-time Environment
44
**
55
** Copyright 2012 REBOL Technologies
6+
** Copyright 2012-2023 Rebol Open Source Developers
67
** REBOL is a trademark of REBOL Technologies
78
**
89
** Additional code modifications and improvements:
@@ -666,7 +667,7 @@ void Paint_Window(HWND window);
666667
**
667668
***********************************************************************/
668669
{
669-
REBCMP* compositor;
670+
//REBCMP* compositor;
670671
if (!wingob) {
671672
wingob = gob;
672673
while (GOB_PARENT(wingob) && GOB_PARENT(wingob) != Gob_Root

src/os/win32/sys-codecs.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -181,12 +181,12 @@ HRESULT AddBoolProperty(IPropertyBag2 *pPropertybag, LPOLESTR name, VARIANT_BOOL
181181
CODECS_API int EncodeImageToFile(PCWSTR *uri, REBCDI *codi)
182182
{
183183
HRESULT hr = S_OK;
184-
UINT w, h;
184+
// UINT w, h;
185185
UINT size;
186186
BYTE *data = NULL;
187187
WICRect wrect;
188188

189-
ULONG bytes;
189+
// ULONG bytes;
190190

191191
IWICBitmap *pWICBitmap = NULL;
192192
IWICBitmapLock *pWICBitmapLock = NULL;

0 commit comments

Comments
 (0)