mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-24 15:12:32 +01:00
Fix some warnings
Non-obvious fixes: WINGs/wfilepanel.c: Cast to void to avoid an unused calculated value warning. WINGs/wtabview.c: Test tab<0 to avoid a warning from the next condition about signed overflow in an inlined invocation of the function. Signed-off-by: Brad Jorsch <anomie@users.sourceforge.net>
This commit is contained in:
committed by
Carlos R. Mafra
parent
51134d2438
commit
5eebb8bc3c
@@ -1225,10 +1225,8 @@ void wHideAll(WScreen *scr)
|
||||
{
|
||||
WWindow *wwin;
|
||||
WWindow **windows;
|
||||
Window FocusedWin;
|
||||
WMenu *menu;
|
||||
unsigned int wcount = 0;
|
||||
int FocusState;
|
||||
int i;
|
||||
|
||||
if (!scr)
|
||||
|
||||
@@ -914,7 +914,6 @@ static void handlePropertyNotify(XEvent * event)
|
||||
Window jr;
|
||||
int ji;
|
||||
unsigned int ju;
|
||||
WScreen *scr;
|
||||
|
||||
wwin = wWindowFor(event->xproperty.window);
|
||||
if (wwin) {
|
||||
@@ -927,8 +926,6 @@ static void handlePropertyNotify(XEvent * event)
|
||||
if (wapp) {
|
||||
wClientCheckProperty(wapp->main_window_desc, &event->xproperty);
|
||||
}
|
||||
|
||||
scr = wScreenForWindow(event->xproperty.window);
|
||||
}
|
||||
|
||||
static void handleClientMessage(XEvent * event)
|
||||
|
||||
@@ -508,7 +508,10 @@ static char *atomNames[] = {
|
||||
void StartUp(Bool defaultScreenOnly)
|
||||
{
|
||||
struct sigaction sig_action;
|
||||
int j, max, dummy;
|
||||
int j, max;
|
||||
#ifdef HAVE_XRANDR
|
||||
int dummy;
|
||||
#endif
|
||||
Atom atom[sizeof(atomNames) / sizeof(char *)];
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user