gegl r3047 - in trunk: examples operations/workshop/generated



Author: martinn
Date: Sat Apr 11 15:34:46 2009
New Revision: 3047
URL: http://svn.gnome.org/viewvc/gegl?rev=3047&view=rev

Log:
Fix compile warnings

Include headers properly, remove unused variables, and generate proper
code with blend.rb

Modified:
   trunk/examples/geglbuffer-add-image.c
   trunk/examples/geglbuffer-clock.c
   trunk/examples/hello-world-video.c
   trunk/examples/hello-world.c
   trunk/operations/workshop/generated/blend.rb

Modified: trunk/examples/geglbuffer-add-image.c
==============================================================================
--- trunk/examples/geglbuffer-add-image.c	(original)
+++ trunk/examples/geglbuffer-add-image.c	Sat Apr 11 15:34:46 2009
@@ -1,6 +1,7 @@
 #include "config.h"
 #include <gegl.h>
 #include <glib/gprintf.h>
+#include <stdlib.h>
 
 gint
 main (gint    argc,

Modified: trunk/examples/geglbuffer-clock.c
==============================================================================
--- trunk/examples/geglbuffer-clock.c	(original)
+++ trunk/examples/geglbuffer-clock.c	Sat Apr 11 15:34:46 2009
@@ -73,11 +73,9 @@
   {
     gint frame;
     gint frames = 1024;
-    GTimeVal val;
 
     for (frame=0; frame<frames; frame++)
       {
-        gchar string[512];
         struct timeval tv;
 
         gettimeofday(&tv, NULL);

Modified: trunk/examples/hello-world-video.c
==============================================================================
--- trunk/examples/hello-world-video.c	(original)
+++ trunk/examples/hello-world-video.c	Sat Apr 11 15:34:46 2009
@@ -1,5 +1,6 @@
 #include "config.h"
 #include <gegl.h>
+#include <glib/gprintf.h>
 
 gint
 main (gint    argc,

Modified: trunk/examples/hello-world.c
==============================================================================
--- trunk/examples/hello-world.c	(original)
+++ trunk/examples/hello-world.c	Sat Apr 11 15:34:46 2009
@@ -1,5 +1,7 @@
 #include "config.h"
 #include <gegl.h>
+#include <glib/gprintf.h>
+
 
 gint
 main (gint    argc,

Modified: trunk/operations/workshop/generated/blend.rb
==============================================================================
--- trunk/operations/workshop/generated/blend.rb	(original)
+++ trunk/operations/workshop/generated/blend.rb	Sat Apr 11 15:34:46 2009
@@ -87,11 +87,12 @@
 }
 
 static gboolean
-process (GeglOperation *op,
-         void          *in_buf,
-         void          *aux_buf,
-         void          *out_buf,
-         glong          n_pixels)
+process (GeglOperation       *op,
+         void                *in_buf,
+         void                *aux_buf,
+         void                *out_buf,
+         glong                n_pixels,
+         const GeglRectangle *roi)
 {
   gfloat *in  = in_buf;
   gfloat *aux = aux_buf;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]