wmagnify stopped working after f65b99e615847 ("Remove warnings").
So revert that change in util/wmagnify.c, as it turns out that the
gcc warning was bogus there.

Signed-off-by: Carlos R. Mafra <[email protected]>
---
 util/wmagnify.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/util/wmagnify.c b/util/wmagnify.c
index 7b085b5..d65d540 100644
--- a/util/wmagnify.c
+++ b/util/wmagnify.c
@@ -397,6 +397,7 @@ static BufferData *newWindow(int magfactor)
 
 int main(int argc, char **argv)
 {
+       BufferData *data;
        int i;
        char *display = "";
        char *vdisplay = NULL;
@@ -480,6 +481,8 @@ int main(int argc, char **argv)
        cursorColor1 = WMCreateNamedColor(scr, "#ff0000", False);
        cursorColor2 = WMCreateNamedColor(scr, "#00ff00", False);
 
+       data = newWindow(magfactor);
+
        WMScreenMainLoop(scr);
 
        return 0;
-- 
1.7.3.4


-- 
To unsubscribe, send mail to [email protected].

Reply via email to