mirror of
https://github.com/gryf/wmaker.git
synced 2026-02-15 21:45:54 +01:00
Remove warnings
* Remove assigned but not used variables (GCC 4.6) * Bump _XOPEN_SOURCE to 600, ridding of FreeBSD warnings (this probably need to be tweaked on a per-implementation basis as problems arise)
This commit is contained in:
committed by
Carlos R. Mafra
parent
43c7abe79f
commit
f65b99e615
@@ -390,12 +390,9 @@ static void scrollByAmount(WMList * lPtr, int amount)
|
||||
static void vScrollCallBack(WMWidget * scroller, void *self)
|
||||
{
|
||||
WMList *lPtr = (WMList *) self;
|
||||
int height;
|
||||
int oldTopItem = lPtr->topItem;
|
||||
int itemCount = WMGetArrayItemCount(lPtr->items);
|
||||
|
||||
height = lPtr->view->size.height - 4;
|
||||
|
||||
switch (WMGetScrollerHitPart((WMScroller *) scroller)) {
|
||||
case WSDecrementLine:
|
||||
scrollByAmount(lPtr, -1);
|
||||
|
||||
Reference in New Issue
Block a user