changeset 2186:a509498d76b9

fixed warnings
author mf0102 <0102@gmx.at>
date Sun, 25 Nov 2007 17:47:11 +0100
parents 145966acb0c4
children 9a7822a4762e
files src/paranormal/cmaps.c src/paranormal/general.c src/paranormal/plugin.c src/paranormal/xform.c
diffstat 4 files changed, 7 insertions(+), 17 deletions(-) [+]
line wrap: on
line diff
--- a/src/paranormal/cmaps.c	Sun Nov 25 17:27:39 2007 +0100
+++ b/src/paranormal/cmaps.c	Sun Nov 25 17:47:11 2007 +0100
@@ -151,7 +151,7 @@
 		  gpointer data)
 {
   PnDynamicColourmapData *d = (PnDynamicColourmapData *) data;
-  gint i, j;
+  gint i;
   gdouble *rf, *bf, *gf, *inf;
   gint rn, bn, gn;
 
--- a/src/paranormal/general.c	Sun Nov 25 17:27:39 2007 +0100
+++ b/src/paranormal/general.c	Sun Nov 25 17:47:11 2007 +0100
@@ -129,7 +129,6 @@
   int i,j;
   register guchar *srcptr = pn_image_data->surface[0];
   register guchar *destptr = pn_image_data->surface[1];
-  register int sum;
   int radius = opts[0].val.ival > 255 || opts[0].val.ival < 0 ? 6 : opts[0].val.ival;
 
   for (j=0; j<pn_image_data->height; j += radius)
--- a/src/paranormal/plugin.c	Sun Nov 25 17:27:39 2007 +0100
+++ b/src/paranormal/plugin.c	Sun Nov 25 17:47:11 2007 +0100
@@ -42,6 +42,10 @@
 #include <SDL.h>
 #include <SDL_thread.h>
 
+#ifdef _POSIX_PRIORITY_SCHEDULING
+#include <sched.h>
+#endif
+
 #include "paranormal.h"
 #include "actuators.h"
 #include "presets.h"
@@ -270,12 +274,6 @@
 }
 
 static void
-about_closed(GtkWidget *w, GdkEvent *e, GtkWidget **window)
-{
-	about_close_clicked(w,window);
-}
-
-static void
 pn_xmms_about (void)
 {
   audacious_info_dialog("About Paranormal Visualization Studio", 
--- a/src/paranormal/xform.c	Sun Nov 25 17:27:39 2007 +0100
+++ b/src/paranormal/xform.c	Sun Nov 25 17:47:11 2007 +0100
@@ -541,12 +541,9 @@
 xform_trans_literal (struct xform_vector *vfield, gint x, gint y,
 	expression_t *expr, symbol_dict_t *dict)
 {
-  gdouble rf, df;
-  gdouble *xf, *yf;
   gint xn, yn;
-
-  xf = dict_variable(dict, "x");
-  yf = dict_variable(dict, "y");
+  gdouble *xf = dict_variable(dict, "x");
+  gdouble *yf = dict_variable(dict, "y");
 
   /* Points (xf, yf) must be in a (-1..1) square. */
   *xf = 2.0 * x / (pn_image_data->width - 1) - 1.0;
@@ -580,8 +577,6 @@
     {
       gint i, j;
       gdouble *rf, *df;
-      gdouble xf, yf;
-      gint xn, yn;
       expression_t *expr;
       symbol_dict_t *dict;
 
@@ -693,8 +688,6 @@
   PnDynMovementData *d = (PnDynMovementData *) odata;
   gint i, j;
   gdouble *rf, *df;
-  gdouble xf, yf;
-  gint xn, yn;
   void (*transform_func)(struct xform_vector *, gint, gint, expression_t *, symbol_dict_t *) = 
         opts[4].val.bval == TRUE ? xform_trans_polar : xform_trans_literal;
   gboolean make_table = FALSE;