Skip to content

Commit

Permalink
FIX: warning: unreferenced local variable
Browse files Browse the repository at this point in the history
  • Loading branch information
Oldes committed Jan 21, 2023
1 parent f7a9e94 commit 0a0757e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/os/win32/host-compositor.c
Original file line number Diff line number Diff line change
Expand Up @@ -517,8 +517,8 @@ static REBXYF Zero_Pair = {0, 0};

REBSER *img = (REBSER*)GOB_CONTENT(gob);
HDC hdc = ctx->back_DC;
BITMAPINFO BitmapInfo = ctx->bmpInfo;
REBINT mode;
// BITMAPINFO BitmapInfo = ctx->bmpInfo;
// REBINT mode;
REBINT src_siz_x = IMG_WIDE(img); // real image size
REBINT src_siz_y = IMG_HIGH(img);

Expand Down
3 changes: 2 additions & 1 deletion src/os/win32/host-window.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
** REBOL [R3] Language Interpreter and Run-time Environment
**
** Copyright 2012 REBOL Technologies
** Copyright 2012-2023 Rebol Open Source Developers
** REBOL is a trademark of REBOL Technologies
**
** Additional code modifications and improvements:
Expand Down Expand Up @@ -666,7 +667,7 @@ void Paint_Window(HWND window);
**
***********************************************************************/
{
REBCMP* compositor;
//REBCMP* compositor;
if (!wingob) {
wingob = gob;
while (GOB_PARENT(wingob) && GOB_PARENT(wingob) != Gob_Root
Expand Down
4 changes: 2 additions & 2 deletions src/os/win32/sys-codecs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -181,12 +181,12 @@ HRESULT AddBoolProperty(IPropertyBag2 *pPropertybag, LPOLESTR name, VARIANT_BOOL
CODECS_API int EncodeImageToFile(PCWSTR *uri, REBCDI *codi)
{
HRESULT hr = S_OK;
UINT w, h;
// UINT w, h;
UINT size;
BYTE *data = NULL;
WICRect wrect;

ULONG bytes;
// ULONG bytes;

IWICBitmap *pWICBitmap = NULL;
IWICBitmapLock *pWICBitmapLock = NULL;
Expand Down

0 comments on commit 0a0757e

Please sign in to comment.