Mercurial > audlegacy
changeset 1593:6647d5cc717c trunk
[svn] Additional (PPC?) warning squashing by Joseph Jezak from Gentoo.
author | chainsaw |
---|---|
date | Thu, 24 Aug 2006 14:55:06 -0700 |
parents | 752949e9aec4 |
children | 44f67f556b60 |
files | ChangeLog Plugins/Visualization/paranormal/pn/pnactuator.c Plugins/Visualization/paranormal/pn/pnactuatorfactory.c Plugins/Visualization/paranormal/pn/pnbooleanoption.c Plugins/Visualization/paranormal/pn/pnfloatoption.c Plugins/Visualization/paranormal/pn/pnintegeroption.c Plugins/Visualization/paranormal/pn/pnlistoption.c Plugins/Visualization/paranormal/pn/pnscript.c Plugins/Visualization/paranormal/pn/pnstringoption.c |
diffstat | 9 files changed, 32 insertions(+), 10 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog Thu Aug 24 12:23:54 2006 -0700 +++ b/ChangeLog Thu Aug 24 14:55:06 2006 -0700 @@ -1,3 +1,18 @@ +2006-08-24 19:23:54 +0000 Tony Vroon <chainsaw@gentoo.org> + revision [2107] + Actually cast variables to glib types before feeding them into glib compare functions. Resolves another 16 signedness warnings on PPC. + + Changes: Modified: + +2 -2 trunk/Plugins/Visualization/paranormal/pn/pnactuator.c + +1 -1 trunk/Plugins/Visualization/paranormal/pn/pnbooleanoption.c + +2 -2 trunk/Plugins/Visualization/paranormal/pn/pncontainer.c + +1 -1 trunk/Plugins/Visualization/paranormal/pn/pnfloatoption.c + +1 -1 trunk/Plugins/Visualization/paranormal/pn/pnintegeroption.c + +1 -1 trunk/Plugins/Visualization/paranormal/pn/pnlistoption.c + +1 -1 trunk/Plugins/Visualization/paranormal/pn/pnstringoption.c + +7 -4 trunk/Plugins/Visualization/paranormal/pn/pnvis.c + + 2006-08-24 18:40:00 +0000 Tony Vroon <chainsaw@gentoo.org> revision [2105] Cast variable to proper type before passing it into libxml2. Include necessary header to make this possible. Resolves 35 pointer signedness warnings on PPC.
--- a/Plugins/Visualization/paranormal/pn/pnactuator.c Thu Aug 24 12:23:54 2006 -0700 +++ b/Plugins/Visualization/paranormal/pn/pnactuator.c Thu Aug 24 14:55:06 2006 -0700 @@ -177,7 +177,7 @@ if (!g_strcasecmp((gchar *) option_node->name, "text")) continue; - option = pn_actuator_get_option_by_name (actuator, option_node->name); + option = pn_actuator_get_option_by_name (actuator, (gchar *) option_node->name); if (option) pn_user_object_load_thyself (PN_USER_OBJECT (option), option_node); else
--- a/Plugins/Visualization/paranormal/pn/pnactuatorfactory.c Thu Aug 24 12:23:54 2006 -0700 +++ b/Plugins/Visualization/paranormal/pn/pnactuatorfactory.c Thu Aug 24 14:55:06 2006 -0700 @@ -99,7 +99,7 @@ { PnActuator *actuator; - actuator = pn_actuator_factory_new_actuator (node->name); + actuator = pn_actuator_factory_new_actuator ((gchar *)node->name); if (! actuator) return NULL;
--- a/Plugins/Visualization/paranormal/pn/pnbooleanoption.c Thu Aug 24 12:23:54 2006 -0700 +++ b/Plugins/Visualization/paranormal/pn/pnbooleanoption.c Thu Aug 24 14:55:06 2006 -0700 @@ -133,7 +133,7 @@ return; } - val_str = xmlNodeGetContent (boolean_option_node); + val_str = (gchar *)xmlNodeGetContent (boolean_option_node); if (! val_str) goto done;
--- a/Plugins/Visualization/paranormal/pn/pnfloatoption.c Thu Aug 24 12:23:54 2006 -0700 +++ b/Plugins/Visualization/paranormal/pn/pnfloatoption.c Thu Aug 24 14:55:06 2006 -0700 @@ -142,7 +142,7 @@ return; } - val_str = xmlNodeGetContent (float_option_node); + val_str = (gchar *)xmlNodeGetContent (float_option_node); if (val_str) pn_float_option_set_value (float_option, strtod (val_str, NULL));
--- a/Plugins/Visualization/paranormal/pn/pnintegeroption.c Thu Aug 24 12:23:54 2006 -0700 +++ b/Plugins/Visualization/paranormal/pn/pnintegeroption.c Thu Aug 24 14:55:06 2006 -0700 @@ -142,7 +142,7 @@ return; } - val_str = xmlNodeGetContent (integer_option_node); + val_str = (gchar *)xmlNodeGetContent (integer_option_node); if (val_str) pn_integer_option_set_value (integer_option, strtol (val_str, NULL, 0));
--- a/Plugins/Visualization/paranormal/pn/pnlistoption.c Thu Aug 24 12:23:54 2006 -0700 +++ b/Plugins/Visualization/paranormal/pn/pnlistoption.c Thu Aug 24 14:55:06 2006 -0700 @@ -139,7 +139,7 @@ return; } - val_str = xmlNodeGetContent (list_option_node); + val_str = (gchar *)xmlNodeGetContent (list_option_node); if (! val_str) goto done;
--- a/Plugins/Visualization/paranormal/pn/pnscript.c Thu Aug 24 12:23:54 2006 -0700 +++ b/Plugins/Visualization/paranormal/pn/pnscript.c Thu Aug 24 14:55:06 2006 -0700 @@ -179,6 +179,7 @@ guint *op; gdouble stack[64]; guint stack_top = 0; + guint temp; g_return_if_fail (script != NULL); g_return_if_fail (PN_IS_SCRIPT (script)); @@ -208,15 +209,21 @@ break; case PN_OP_ADD: - PEEKN (2) += POPV; + /* PEEKN (2) += POPV; */ + temp = POPV; + PEEKN(2) += temp; break; case PN_OP_SUB: - PEEKN (2) -= POPV; + /* PEEKN (2) -= POPV; */ + temp = POPV; + PEEKN(2) -= temp; break; case PN_OP_MUL: - PEEKN (2) *= POPV; + /* PEEKN (2) *= POPV; */ + temp = POPV; + PEEKN(2) *= temp; break; case PN_OP_DIV:
--- a/Plugins/Visualization/paranormal/pn/pnstringoption.c Thu Aug 24 12:23:54 2006 -0700 +++ b/Plugins/Visualization/paranormal/pn/pnstringoption.c Thu Aug 24 14:55:06 2006 -0700 @@ -136,7 +136,7 @@ return; } - val_str = xmlNodeGetContent (string_option_node); + val_str = (gchar *)xmlNodeGetContent (string_option_node); if (val_str) pn_string_option_set_value (string_option, val_str); else