mirror of
https://github.com/gryf/wmaker.git
synced 2026-03-06 01:05: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
@@ -2725,7 +2725,6 @@ static void customSetPalette(W_ColorPanel * panel)
|
||||
W_Screen *scr = WMWidgetScreen(panel->win);
|
||||
RImage *scaledImg;
|
||||
Pixmap image;
|
||||
int item;
|
||||
|
||||
image = XCreatePixmap(scr->display, W_DRAWABLE(scr), customPaletteWidth, customPaletteHeight, scr->depth);
|
||||
scaledImg = RScaleImage(panel->customPaletteImg, customPaletteWidth, customPaletteHeight);
|
||||
@@ -2751,7 +2750,7 @@ static void customSetPalette(W_ColorPanel * panel)
|
||||
panel->palXRatio = (double)(panel->customPaletteImg->width) / (double)(customPaletteWidth);
|
||||
panel->palYRatio = (double)(panel->customPaletteImg->height) / (double)(customPaletteHeight);
|
||||
|
||||
item = WMGetPopUpButtonSelectedItem(panel->customPaletteHistoryBtn);
|
||||
WMGetPopUpButtonSelectedItem(panel->customPaletteHistoryBtn);
|
||||
}
|
||||
|
||||
static void customPalettePositionSelection(W_ColorPanel * panel, int x, int y)
|
||||
@@ -3366,7 +3365,7 @@ static int fetchFile(char *toPath, char *srcFile, char *destFile)
|
||||
break;
|
||||
|
||||
RETRY( nwritten = fwrite(buf, 1, nread, dst) )
|
||||
if (ferror(dst) || feof(src))
|
||||
if (ferror(dst) || feof(src) || nread != nwritten)
|
||||
break;
|
||||
|
||||
} while (1);
|
||||
|
||||
Reference in New Issue
Block a user