[beryl-commits] Animation plugin: Changes to 'master' (ac4e3ec09b8c61f9f30a1e3cd470a511ac1b37b1)

cornelius at server.beryl-project.org cornelius at server.beryl-project.org
Sun Jun 3 02:40:59 CEST 2007


New commits:
commit ac4e3ec09b8c61f9f30a1e3cd470a511ac1b37b1
Author: Erkin Bahceci <erkinbah at gmail.com>
Date:   Sat Jun 2 20:35:26 2007 -0400

    Get rid of compile warnings

commit b9b81c00075a6e7ec3e45ad015da71e995945901
Author: Erkin Bahceci <erkinbah at gmail.com>
Date:   Sat Jun 2 20:34:35 2007 -0400

    Add some Makefile options


 Makefile    |    2 +-
 animation.c |    8 ++++----
 2 files changed, 5 insertions(+), 5 deletions(-)


Modified: compcomm/plugins/animation/Makefile
===================================================================
--- compcomm/plugins/animation/Makefile
+++ compcomm/plugins/animation/Makefile
@@ -47,7 +47,7 @@ INSTALL   = install
 
 BCOP       = `pkg-config --variable=bin bcop`
 
-CFLAGS  = -g -Wall `pkg-config --cflags $(PKG_DEP) $(TARGET) `
+CFLAGS  = -g -O2 -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -fno-strict-aliasing `pkg-config --cflags $(PKG_DEP) $(TARGET) `
 LDFLAGS = `pkg-config --libs $(PKG_DEP) $(TARGET) `
 
 is-bcop-target := $(shell if [ -e $(PLUGIN).xml ]; then cat $(PLUGIN).xml | grep "useBcop=\"true\"";fi )

Modified: compcomm/plugins/animation/animation.c
===================================================================
--- compcomm/plugins/animation/animation.c
+++ compcomm/plugins/animation/animation.c
@@ -6208,9 +6208,9 @@ initiateFocusAnimation(CompWindow *w)
 	ANIM_SCREEN(s);
 	ANIM_WINDOW(w);
 	
-	CompWindow *wStart;
-	CompWindow *wEnd;
-	CompWindow *wOldAbove;
+	CompWindow *wStart = NULL;
+	CompWindow *wEnd = NULL;
+	CompWindow *wOldAbove = NULL;
 
 	RestackInfo *restackInfo = aw->restackInfo;
 	Bool raised = TRUE;
@@ -6522,7 +6522,7 @@ static void animPreparePaintScreen(CompScreen * s, int msSinceLastPaint)
 	{
 		AnimWindow *aw;
 		BoxRec box;
-		Point topLeft, bottomRight;
+		Point topLeft = {0, 0}, bottomRight = {0, 0};
 
 		as->animInProgress = FALSE;
 		for (w = s->windows; w; w = w->next)



More information about the commits mailing list