GNOME Bugzilla – Bug 668497
Squash a few warnings
Last modified: 2012-01-24 15:30:39 UTC
Building pygobject with GCC 4.6.2 produces a small menagerie of warnings. These patches squash a few of the more obvious ones.
Created attachment 205875 [details] [review] Fix a few set-but-not-used warnings. In a couple of cases, the variable in question was set to a value spelled out again later in the function. The 'sequence_cache' variable is re-declared five lines below. The return value of 'read' was previously completely ignored. The 'gssize ret' variable was in fact added to squash an unused-result warning.
Created attachment 205876 [details] [review] g_instance_init: cast to PyGObject * as needed This squashes a compiler warning.
Created attachment 205877 [details] [review] Cairo: add missing braces around array-of-struct definition This triggered a -Wmissing-braces warning.
Attachment 205875 [details] pushed as a8408cf - Fix a few set-but-not-used warnings. Attachment 205876 [details] pushed as db24865 - g_instance_init: cast to PyGObject * as needed Attachment 205877 [details] pushed as e37ee78 - Cairo: add missing braces around array-of-struct definition