Silence GCC 4.6 "variable 'foo' set but not used [-Werror=unused-but-set-variable]" warnings/errors.
svn path=/trunk/; revision=53800
IDataObject *pdo;
#ifdef _MSC_VER
HMODULE hShell32 = NULL;
-#endif
CPSEAE msvc_SHCreatePropSheetExtArrayEx;
-
- /* silence gcc warning */
- msvc_SHCreatePropSheetExtArrayEx = NULL;
+#endif
/* FIXME: Build the "%s and %s" caption string for the monitor and adapter name */
szCaption[0] = _T('\0');
static INT_PTR
AppearancePage_OnInit(HWND hwndDlg)
{
- INT i, TemplateCount, iListIndex;
+ INT i, /*TemplateCount,*/ iListIndex;
HWND hwndColor, hwndTheme;
GLOBALS *g;
LoadThemes(g);
- TemplateCount = LoadSchemePresetEntries(g->strSelectedStyle);
+ /*TemplateCount = */ LoadSchemePresetEntries(g->strSelectedStyle);
hwndColor = GetDlgItem(hwndDlg, IDC_APPEARANCE_COLORSCHEME);
g->SchemeId = -1;
BOOL
MyDrawCaptionTemp(HWND hwnd, HDC hdc, const RECT *rect, HFONT hFont, HICON hIcon, LPCWSTR str, UINT uFlags, COLOR_SCHEME *scheme)
{
- ULONG Height;
- UINT VCenter, Padding;
- LONG ButtonWidth;
+ //ULONG Height;
+ //UINT VCenter, Padding;
+ //LONG ButtonWidth;
HBRUSH hbr;
HGDIOBJ hFontOld;
- RECT rc;
+ RECT rc;
- Height = scheme->Size[SIZE_CAPTION_Y] - 1;
- VCenter = (rect->bottom - rect->top) / 2;
- Padding = VCenter - (Height / 2);
+ //Height = scheme->Size[SIZE_CAPTION_Y] - 1;
+ //VCenter = (rect->bottom - rect->top) / 2;
+ //Padding = VCenter - (Height / 2);
- ButtonWidth = scheme->Size[SIZE_SIZE_X] - 2;
+ //ButtonWidth = scheme->Size[SIZE_SIZE_X] - 2;
if (uFlags & DC_GRADIENT)
{
SIZE rcsize;
LOGFONT lf;
HFONT hPrevFont, hFont;
- INT len;
+ //INT len;
hFont = infoPtr->Monitors[Index].hFont;
if (hFont == NULL &&
(2 * infoPtr->SelectionFrame.cy) - 2;
rcsize.cy = (rcsize.cy * 60) / 100;
- len = _tcslen(infoPtr->Monitors[Index].szCaption);
+ //len = _tcslen(infoPtr->Monitors[Index].szCaption);
hPrevFont = SelectObject(hDC,
infoPtr->hFont);
{
HINSTANCE hLibrary;
PVOID pInitFunction;
- NTSTATUS Status;
+ //NTSTATUS Status;
ANSI_STRING InitFuncName;
BOOL Result = FALSE;
/* Initialize the user api hook */
ASSERT(pstrInitFunc->Buffer);
- Status = RtlUnicodeStringToAnsiString(&InitFuncName,
+ /*Status = */ RtlUnicodeStringToAnsiString(&InitFuncName,
pstrInitFunc,
TRUE);
static HRGN UXTHEME_RegionFromDibBits(RGBQUAD* pBuffer, RGBQUAD* pclrTransparent, LPCRECT pRect)
{
int x, y, xstart;
- int cMaxRgnRects, cRgnDataSize, cRgnRects;
#ifdef EXTCREATEREGION_WORKS
+ int cMaxRgnRects, cRgnDataSize, cRgnRects;
RECT* prcCurrent;
PRGNDATA prgnData;
#else
pclrCurrent = (PULONG)pBuffer;
clrTransparent = *(PULONG)pclrTransparent;
+#ifdef EXTCREATEREGION_WORKS
/* Create a region and pre-allocate memory enough for 3 spaces in one row*/
cRgnRects = 0;
cMaxRgnRects = 4* (pRect->bottom-pRect->top);
cRgnDataSize = sizeof(RGNDATA) + cMaxRgnRects * sizeof(RECT);
-#ifdef EXTCREATEREGION_WORKS
/* Allocate the region data */
prgnData = (PRGNDATA)HeapAlloc(GetProcessHeap(), 0, cRgnDataSize);
ThemeHandleButton(HWND hWnd, WPARAM wParam)
{
MSG Msg;
- BOOL Pressed = TRUE, OldState;
+ BOOL Pressed = TRUE; // , OldState;
WPARAM SCMsg, ht;
ULONG Style;
DRAW_CONTEXT context;
if (Msg.message != WM_MOUSEMOVE)
continue;
- OldState = Pressed;
+ //OldState = Pressed;
ht = SendMessage(hWnd, WM_NCHITTEST, 0, MAKELPARAM(Msg.pt.x, Msg.pt.y));
Pressed = (ht == wParam);