From 09a8911b6f70e80eacca5d37a14bdf4377990ec2 Mon Sep 17 00:00:00 2001 From: "Carlos R. Mafra" Date: Mon, 17 Aug 2009 17:35:48 +0200 Subject: [PATCH] Remove unused variables GCC -Wall complains about them. --- WINGs/dragdestination.c | 3 +-- src/main.c | 4 ---- util/fontconv.c | 2 +- 3 files changed, 2 insertions(+), 7 deletions(-) diff --git a/WINGs/dragdestination.c b/WINGs/dragdestination.c index 9206cb82..f538722b 100644 --- a/WINGs/dragdestination.c +++ b/WINGs/dragdestination.c @@ -289,8 +289,7 @@ findDestinationViewInToplevel(WMView* toplevel, int x, int y) WMScreen *scr = W_VIEW_SCREEN(toplevel); Window toplevelWin = WMViewXID(toplevel); int xInToplevel, yInToplevel; - Window child, foo; - WMView *childView; + Window foo; XTranslateCoordinates(scr->display, scr->rootWin, toplevelWin, x, y, &xInToplevel, &yInToplevel, diff --git a/src/main.c b/src/main.c index d61fda2e..06eed084 100644 --- a/src/main.c +++ b/src/main.c @@ -177,10 +177,6 @@ extern int MonitorLoop(int argc, char **argv); static Bool multiHead = True; -/* stdi/o for log shell */ -static int LogStdIn = -1, LogStdOut = -1, LogStdErr = -1; - - static int real_main(int argc, char **argv); void diff --git a/util/fontconv.c b/util/fontconv.c index 0f07abfd..1f5dee0d 100644 --- a/util/fontconv.c +++ b/util/fontconv.c @@ -130,7 +130,7 @@ char* xlfdToFc(char *xlfd, char *useFamily, Bool keepXLFD) { str *tokens, *family, *weight, *slant; - char *name, buf[64], *slt; + char *name, buf[64]; int size, pixelsize; tokens = getXLFDTokens(xlfd); -- 2.11.4.GIT