# HG changeset patch # User mf0102 <0102@gmx.at> # Date 1196009231 -3600 # Node ID a509498d76b988fb55028b8759239269c8cccf60 # Parent 145966acb0c46a76c9f332aab541b3e52a4fbd36 fixed warnings diff -r 145966acb0c4 -r a509498d76b9 src/paranormal/cmaps.c --- 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; diff -r 145966acb0c4 -r a509498d76b9 src/paranormal/general.c --- 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; jheight; j += radius) diff -r 145966acb0c4 -r a509498d76b9 src/paranormal/plugin.c --- 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 #include +#ifdef _POSIX_PRIORITY_SCHEDULING +#include +#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", diff -r 145966acb0c4 -r a509498d76b9 src/paranormal/xform.c --- 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;