Skip to content

Commit

Permalink
Fix 2 (minor) compiler warnings on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
jan.nijtmans committed Jan 2, 2024
1 parent fb90e61 commit ef36690
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion win/ttkWinTheme.c
Original file line number Diff line number Diff line change
Expand Up @@ -798,7 +798,7 @@ static void TabElementDraw(
}
}

static const Ttk_ElementSpec TabElementSpec = {
static Ttk_ElementSpec TabElementSpec = {
TK_STYLE_VERSION_2,
sizeof(TabElement),
TabElementOptions,
Expand Down
3 changes: 2 additions & 1 deletion win/ttkWinXPTheme.c
Original file line number Diff line number Diff line change
Expand Up @@ -770,6 +770,7 @@ static void TabElementDraw(
int partId = elementData->info->partId;
int isSelected = (state & TTK_STATE_SELECTED);
int stateId = Ttk_StateTableLookup(elementData->info->statemap, state);
RECT rc = BoxToRect(b);

if (mainInfoPtr != NULL) {
nbTabsStickBit = (Ttk_PositionSpec) mainInfoPtr->ttkNbTabsStickBit;
Expand All @@ -793,7 +794,7 @@ static void TabElementDraw(
break;
}

RECT rc = BoxToRect(b);
rc = BoxToRect(b);

if (!InitElementData(elementData, tkwin, d))
return;
Expand Down

0 comments on commit ef36690

Please sign in to comment.