GNOME Bugzilla – Bug 316473
Compile time warnings
Last modified: 2009-08-15 18:40:50 UTC
Please describe the problem: When compiling, the following warnings appear: MKDIR preping temporary files and build directories MKDIR mock target directories JIKES src/java/*.java JAR share/java/gtk2.8.jar GCC src/jni/org_gnu_gdk_EventDND.c GCC src/jni/org_gnu_gdk_EventAny.c GCC src/jni/org_gnu_gdk_Pixmap.c src/jni/org_gnu_gdk_Pixmap.c: In function `Java_org_gnu_gdk_Pixmap_gdk_1pixmap_1new': src/jni/org_gnu_gdk_Pixmap.c:41: warning: passing arg 2 of `getGObjectHandle' from incompatible pointer type src/jni/org_gnu_gdk_Pixmap.c: In function `Java_org_gnu_gdk_Pixmap_gdk_1pixmap_1create_1from_1data': src/jni/org_gnu_gdk_Pixmap.c:65: warning: passing arg 2 of `getGObjectHandle' from incompatible pointer type src/jni/org_gnu_gdk_Pixmap.c: In function `Java_org_gnu_gdk_Pixmap_gdk_1pixmap_1create_1from_1xpm': src/jni/org_gnu_gdk_Pixmap.c:84: warning: passing arg 2 of `getGObjectHandle' from incompatible pointer type GCC src/jni/org_gnu_gtk_MenuItem.c GCC src/jni/org_gnu_gtk_TreeSelection.c GCC src/jni/org_gnu_gtk_RadioActionEntry.c GCC src/jni/org_gnu_gdk_EventKey.c GCC src/jni/org_gnu_gtk_ToggleActionEntry.c GCC src/jni/org_gnu_gtk_CellRendererProgress.c GCC src/jni/org_gnu_gtk_Viewport.c GCC src/jni/org_gnu_gtk_Menu.c GCC src/jni/org_gnu_gtk_RadioAction.c GCC src/jni/org_gnu_gtk_Misc.c GCC src/jni/org_gnu_gdk_EventScroll.c src/jni/org_gnu_gdk_EventScroll.c: In function `Java_org_gnu_gdk_EventScroll_getDevice': src/jni/org_gnu_gdk_EventScroll.c:101: warning: passing arg 2 of `getGObjectHandle' from incompatible pointer type GCC src/jni/org_gnu_gtk_Layout.c GCC src/jni/org_gnu_gtk_VButtonBox.c GCC src/jni/org_gnu_glib_CustomEvents.c src/jni/org_gnu_glib_CustomEvents.c: In function `Java_org_gnu_glib_CustomEvents_init': src/jni/org_gnu_glib_CustomEvents.c:58: warning: passing arg 1 of `g_source_new' discards qualifiers from pointer target type src/jni/org_gnu_glib_CustomEvents.c:60: warning: passing arg 1 of `g_source_set_can_recurse' discards qualifiers from pointer target type src/jni/org_gnu_glib_CustomEvents.c:61: warning: passing arg 1 of `g_source_set_callback' discards qualifiers from pointer target type src/jni/org_gnu_glib_CustomEvents.c:62: warning: passing arg 1 of `g_source_attach' discards qualifiers from pointer target type src/jni/org_gnu_glib_CustomEvents.c:62: warning: passing arg 2 of `g_source_attach' discards qualifiers from pointer target type src/jni/org_gnu_glib_CustomEvents.c:63: warning: passing arg 1 of `g_source_set_priority' discards qualifiers from pointer target type src/jni/org_gnu_glib_CustomEvents.c: In function `Java_org_gnu_glib_CustomEvents_setEventsPending': src/jni/org_gnu_glib_CustomEvents.c:72: warning: passing arg 1 of `g_main_context_wakeup' discards qualifiers from pointer target type src/jni/org_gnu_glib_CustomEvents.c: In function `Java_org_gnu_glib_CustomEvents_cleanup': src/jni/org_gnu_glib_CustomEvents.c:81: warning: passing arg 1 of `g_source_destroy' discards qualifiers from pointer target type src/jni/org_gnu_glib_CustomEvents.c:82: warning: passing arg 1 of `g_free' discards qualifiers from pointer target type GCC src/jni/org_gnu_gdk_Window.c GCC src/jni/org_gnu_gtk_Curve.c GCC src/jni/org_gnu_gtk_Accessible.c GCC src/jni/org_gnu_pango_AttrIterator.c GCC src/jni/org_gnu_gtk_IMContext.c GCC src/jni/org_gnu_gdk_EventCrossing.c GCC src/jni/org_gnu_gtk_ItemFactory.c GCC src/jni/org_gnu_gtk_CellRenderer.c GCC src/jni/org_gnu_gtk_Label.c GCC src/jni/org_gnu_gdk_Gdk.c src/jni/org_gnu_gdk_Gdk.c: In function `Java_org_gnu_gdk_Gdk_gdk_1pango_1context_1get': src/jni/org_gnu_gdk_Gdk.c:290: warning: return makes pointer from integer without a cast GCC src/jni/org_gnu_pango_Color.c GCC src/jni/org_gnu_gtk_TreeModelFilter.c GCC src/jni/org_gnu_gtk_Plug.c GCC src/jni/org_gnu_gtk_OptionMenu.c GCC src/jni/org_gnu_gtk_TreeStore.c GCC src/jni/org_gnu_glib_Value.c GCC src/jni/org_gnu_gtk_Dialog.c GCC src/jni/org_gnu_gtk_ToolTipsData.c GCC src/jni/org_gnu_glib_MemStruct.c GCC src/jni/org_gnu_gtk_VBox.c GCC src/jni/org_gnu_pango_FontDescription.c GCC src/jni/org_gnu_gdk_EventMotion.c GCC src/jni/org_gnu_gtk_Scale.c GCC src/jni/org_gnu_gtk_ListStore.c GCC src/jni/org_gnu_gdk_Device.c src/jni/org_gnu_gdk_Device.c: In function `Java_org_gnu_gdk_Device_gdk_1device_1get_1core_1pointer': src/jni/org_gnu_gdk_Device.c:168: warning: passing arg 2 of `getGObjectHandle' from incompatible pointer type GCC src/jni/org_gnu_gtk_TreeModel.c GCC src/jni/org_gnu_gdk_PixbufFormat.c GCC src/jni/org_gnu_gtk_Preview.c GCC src/jni/org_gnu_pango_Font.c GCC src/jni/org_gnu_pango_Attribute.c GCC src/jni/org_gnu_pango_Rectangle.c GCC src/jni/org_gnu_gtk_HScrollBar.c GCC src/jni/org_gnu_gtk_Rc.c GCC src/jni/org_gnu_atk_RelationType.c GCC src/jni/org_gnu_gtk_CellView.c GCC src/jni/org_gnu_gtk_Clipboard.c GCC src/jni/org_gnu_pango_AttrFloat.c GCC src/jni/org_gnu_atk_StateSet.c src/jni/org_gnu_atk_StateSet.c: In function `Java_org_gnu_atk_StateSet_atk_1state_1set_1new': src/jni/org_gnu_atk_StateSet.c:37: warning: return makes pointer from integer without a cast src/jni/org_gnu_atk_StateSet.c: In function `Java_org_gnu_atk_StateSet_atk_1state_1set_1and_1sets': src/jni/org_gnu_atk_StateSet.c:133: warning: return makes pointer from integer without a cast src/jni/org_gnu_atk_StateSet.c: In function `Java_org_gnu_atk_StateSet_atk_1state_1set_1or_1sets': src/jni/org_gnu_atk_StateSet.c:145: warning: return makes pointer from integer without a cast src/jni/org_gnu_atk_StateSet.c: In function `Java_org_gnu_atk_StateSet_atk_1state_1set_1xor_1sets': src/jni/org_gnu_atk_StateSet.c:157: warning: return makes pointer from integer without a cast GCC src/jni/org_gnu_gtk_Calendar.c GCC src/jni/org_gnu_gtk_VScrollBar.c GCC src/jni/org_gnu_glib_GListString.c GCC src/jni/org_gnu_atk_RelationSet.c src/jni/org_gnu_atk_RelationSet.c: In function `Java_org_gnu_atk_RelationSet_atk_1relation_1set_1new': src/jni/org_gnu_atk_RelationSet.c:36: warning: return makes pointer from integer without a cast src/jni/org_gnu_atk_RelationSet.c: In function `Java_org_gnu_atk_RelationSet_atk_1relation_1set_1get_1relation': src/jni/org_gnu_atk_RelationSet.c:96: warning: return makes pointer from integer without a cast src/jni/org_gnu_atk_RelationSet.c: In function `Java_org_gnu_atk_RelationSet_atk_1relation_1set_1get_1relation_1by_1type': src/jni/org_gnu_atk_RelationSet.c:108: warning: return makes pointer from integer without a cast GCC src/jni/org_gnu_gdk_Drawable.c GCC src/jni/org_gnu_gtk_SeparatorToolItem.c GCC src/jni/org_gnu_gtk_Ruler.c GCC src/jni/org_gnu_glib_GObject.c GCC src/jni/org_gnu_gtk_IMContextSimple.c GCC src/jni/org_gnu_gtk_ToggleAction.c GCC src/jni/org_gnu_gdk_RgbCmap.c GCC src/jni/org_gnu_gtk_Table.c GCC src/jni/org_gnu_gtk_Entry.c GCC src/jni/org_gnu_glib_List.c GCC src/jni/org_gnu_gtk_GtkObject.c GCC src/jni/org_gnu_pango_Coverage.c GCC src/jni/org_gnu_gtk_TextTag.c GCC src/jni/org_gnu_gtk_RadioButton.c GCC src/jni/org_gnu_gdk_Event.c src/jni/org_gnu_gdk_Event.c: In function `Java_org_gnu_gdk_Event_gdk_1event_1get': src/jni/org_gnu_gdk_Event.c:36: warning: passing arg 5 of `getGBoxedHandle' from incompatible pointer type src/jni/org_gnu_gdk_Event.c: In function `Java_org_gnu_gdk_Event_gdk_1event_1peek': src/jni/org_gnu_gdk_Event.c:46: warning: passing arg 5 of `getGBoxedHandle' from incompatible pointer type src/jni/org_gnu_gdk_Event.c: In function `Java_org_gnu_gdk_Event_gdk_1event_1get_1graphics_1expose': src/jni/org_gnu_gdk_Event.c:58: warning: passing arg 4 of `getGBoxedHandle' from incompatible pointer type src/jni/org_gnu_gdk_Event.c:58: warning: passing arg 5 of `getGBoxedHandle' from incompatible pointer type src/jni/org_gnu_gdk_Event.c: In function `Java_org_gnu_gdk_Event_gdk_1event_1new': src/jni/org_gnu_gdk_Event.c:81: warning: passing arg 5 of `getGBoxedHandle' from incompatible pointer type src/jni/org_gnu_gdk_Event.c: In function `Java_org_gnu_gdk_Event_gdk_1event_1copy': src/jni/org_gnu_gdk_Event.c:94: warning: passing arg 5 of `getGBoxedHandle' from incompatible pointer type GCC src/jni/org_gnu_gtk_Separator.c GCC src/jni/org_gnu_gtk_ComboBox.c GCC src/jni/org_gnu_pango_Layout.c src/jni/org_gnu_pango_Layout.c: In function `Java_org_gnu_pango_Layout_pango_1layout_1copy': src/jni/org_gnu_pango_Layout.c:50: warning: passing arg 2 of `getGObjectHandle' from incompatible pointer type src/jni/org_gnu_pango_Layout.c: In function `Java_org_gnu_pango_Layout_pango_1layout_1get_1context': src/jni/org_gnu_pango_Layout.c:61: warning: passing arg 2 of `getGObjectHandle' from incompatible pointer type src/jni/org_gnu_pango_Layout.c: In function `Java_org_gnu_pango_Layout_pango_1layout_1get_1attributes': src/jni/org_gnu_pango_Layout.c:87: warning: passing arg 4 of `getGBoxedHandle' from incompatible pointer type GCC src/jni/org_gnu_gtk_FileSelection.c GCC src/jni/org_gnu_gtk_SizeGroup.c GCC src/jni/org_gnu_gtk_ProgressBar.c GCC src/jni/org_gnu_gtk_HScale.c GCC src/jni/org_gnu_gdk_GdkCairo.c src/jni/org_gnu_gdk_GdkCairo.c: In function `Java_org_gnu_gdk_GdkCairo_gdk_1cairo_1create': src/jni/org_gnu_gdk_GdkCairo.c:33: warning: passing arg 4 of `getStructHandle' from incompatible pointer type GCC src/jni/org_gnu_gtk_VPaned.c GCC src/jni/org_gnu_gtk_IconFactory.c GCC src/jni/org_gnu_gtk_EntryCompletion.c GCC src/jni/org_gnu_pango_FontMetrics.c GCC src/jni/org_gnu_gtk_ButtonBox.c GCC src/jni/org_gnu_gtk_IconSet.c src/jni/org_gnu_gtk_IconSet.c: In function `Java_org_gnu_gtk_IconSet_gtk_1icon_1set_1ref': src/jni/org_gnu_gtk_IconSet.c:50: warning: `return' with a value, in function returning void GCC src/jni/org_gnu_gtk_Fixed.c GCC src/jni/org_gnu_atk_Relation.c src/jni/org_gnu_atk_Relation.c: In function `Java_org_gnu_atk_Relation_atk_1relation_1new': src/jni/org_gnu_atk_Relation.c:73: warning: return makes pointer from integer without a cast src/jni/org_gnu_atk_Relation.c: In function `Java_org_gnu_atk_Relation_atk_1relation_1get_1target': src/jni/org_gnu_atk_Relation.c:96: warning: return makes pointer from integer without a cast GCC src/jni/org_gnu_gtk_RadioMenuItem.c GCC src/jni/org_gnu_gtk_ToggleToolButton.c GCC src/jni/org_gnu_gtk_IconTheme.c GCC src/jni/org_gnu_gtk_IconSource.c GCC src/jni/org_gnu_pango_TabArray.c GCC src/jni/org_gnu_gdk_Keymap.c src/jni/org_gnu_gdk_Keymap.c: In function `Java_org_gnu_gdk_Keymap_gdk_1keymap_1get_1default': src/jni/org_gnu_gdk_Keymap.c:35: warning: passing arg 2 of `getGObjectHandle' from incompatible pointer type GCC src/jni/org_gnu_gtk_MenuShell.c GCC src/jni/org_gnu_gtk_ToolButton.c GCC src/jni/org_gnu_gtk_Style.c GCC src/jni/org_gnu_glib_Type.c GCC src/jni/org_gnu_glib_Boxed.c GCC src/jni/org_gnu_gtk_FontSelection.c GCC src/jni/org_gnu_gdk_Region.c src/jni/org_gnu_gdk_Region.c: In function `getRectangleHandle': src/jni/org_gnu_gdk_Region.c:70: warning: passing arg 3 of `getGBoxedHandle' makes integer from pointer without a cast GCC src/jni/org_gnu_gtk_Progress.c GCC src/jni/org_gnu_gtk_AccelKey.c GCC src/jni/org_gnu_gtk_AccelMap.c GCC src/jni/org_gnu_gtk_HRuler.c GCC src/jni/org_gnu_gtk_CheckButton.c GCC src/jni/org_gnu_gdk_EventOwnerChange.c GCC src/jni/org_gnu_gdk_EventNoExpose.c GCC src/jni/org_gnu_gtk_FileChooserWidget.c GCC src/jni/org_gnu_gtk_ActionEntry.c GCC src/jni/org_gnu_gtk_Frame.c GCC src/jni/org_gnu_gtk_ColorButton.c GCC src/jni/org_gnu_gtk_ScrolledWindow.c GCC src/jni/org_gnu_gtk_SeparatorMenuItem.c GCC src/jni/org_gnu_gdk_Geometry.c GCC src/jni/org_gnu_gdk_EventButton.c GCC src/jni/org_gnu_gtk_IconInfo.c GCC src/jni/org_gnu_gtk_FontSelectionDialog.c GCC src/jni/org_gnu_gdk_Display.c src/jni/org_gnu_gdk_Display.c: In function `Java_org_gnu_gdk_Display_gdk_1display_1get_1event': src/jni/org_gnu_gdk_Display.c:228: warning: passing arg 5 of `getGBoxedHandle' from incompatible pointer type src/jni/org_gnu_gdk_Display.c: In function `Java_org_gnu_gdk_Display_gdk_1display_1peek_1event': src/jni/org_gnu_gdk_Display.c:244: warning: passing arg 5 of `getGBoxedHandle' from incompatible pointer type src/jni/org_gnu_gdk_Display.c: In function `Java_org_gnu_gdk_Display_gdk_1display_1get_1window_1at_1pointer': src/jni/org_gnu_gdk_Display.c:328: warning: assignment from incompatible pointer type GCC src/jni/org_gnu_gtk_IMMulticontext.c GCC src/jni/org_gnu_gtk_CellEditable.c GCC src/jni/org_gnu_gtk_WidgetAuxInfo.c GCC src/jni/org_gnu_gtk_ToggleButton.c GCC src/jni/org_gnu_gtk_ScrollBar.c GCC src/jni/org_gnu_gdk_PixbufLoader.c src/jni/org_gnu_gdk_PixbufLoader.c: In function `Java_org_gnu_gdk_PixbufLoader_gdk_1pixbuf_1loader_1new': src/jni/org_gnu_gdk_PixbufLoader.c:36: warning: passing arg 2 of `getGObjectHandle' from incompatible pointer type src/jni/org_gnu_gdk_PixbufLoader.c: In function `Java_org_gnu_gdk_PixbufLoader_gdk_1pixbuf_1loader_1new_1with_1type': src/jni/org_gnu_gdk_PixbufLoader.c:50: warning: passing arg 2 of `getGObjectHandle' from incompatible pointer type src/jni/org_gnu_gdk_PixbufLoader.c: In function `Java_org_gnu_gdk_PixbufLoader_gdk_1pixbuf_1loader_1get_1pixbuf': src/jni/org_gnu_gdk_PixbufLoader.c:80: warning: passing arg 2 of `getGObjectHandle' from incompatible pointer type src/jni/org_gnu_gdk_PixbufLoader.c: In function `Java_org_gnu_gdk_PixbufLoader_gdk_1pixbuf_1loader_1get_1animation': src/jni/org_gnu_gdk_PixbufLoader.c:91: warning: passing arg 2 of `getGObjectHandle' from incompatible pointer type GCC src/jni/org_gnu_gdk_Bitmap.c GCC src/jni/org_gnu_gtk_AccelGroup.c GCC src/jni/org_gnu_gtk_SpinButton.c GCC src/jni/org_gnu_gtk_CellLayoutHelper.c GCC src/jni/org_gnu_gtk_InputDialog.c GCC src/jni/org_gnu_atk_Registry.c src/jni/org_gnu_atk_Registry.c: In function `Java_org_gnu_atk_Registry_atk_1registry_1get_1factory': src/jni/org_gnu_atk_Registry.c:60: warning: return makes pointer from integer without a cast src/jni/org_gnu_atk_Registry.c: In function `Java_org_gnu_atk_Registry_atk_1get_1default_1registry': src/jni/org_gnu_atk_Registry.c:70: warning: return makes pointer from integer without a cast GCC src/jni/org_gnu_gdk_Rectangle.c GCC src/jni/org_gnu_gtk_ComboBoxEntry.c GCC src/jni/org_gnu_gtk_StatusBar.c GCC src/jni/org_gnu_gdk_Visual.c GCC src/jni/org_gnu_gtk_Settings.c GCC src/jni/org_gnu_gtk_MessageDialog.c GCC src/jni/org_gnu_pango_AttrInt.c GCC src/jni/org_gnu_atk_ObjectFactory.c src/jni/org_gnu_atk_ObjectFactory.c: In function `Java_org_gnu_atk_ObjectFactory_atk_1object_1factory_1create_1accessible': src/jni/org_gnu_atk_ObjectFactory.c:39: warning: return makes pointer from integer without a cast GCC src/jni/org_gnu_gtk_TreeModelSort.c GCC src/jni/org_gnu_gtk_AboutDialog.c GCC src/jni/gtk_java.c GCC src/jni/org_gnu_gdk_PixbufAnimation.c src/jni/org_gnu_gdk_PixbufAnimation.c: In function `Java_org_gnu_gdk_PixbufAnimation_gdk_1pixbuf_1animation_1new_1from_1file': src/jni/org_gnu_gdk_PixbufAnimation.c:41: warning: passing arg 2 of `getGObjectHandle' from incompatible pointer type src/jni/org_gnu_gdk_PixbufAnimation.c: In function `Java_org_gnu_gdk_PixbufAnimation_gdk_1pixbuf_1animation_1get_1iter': src/jni/org_gnu_gdk_PixbufAnimation.c:81: warning: passing arg 2 of `getGObjectHandle' from incompatible pointer type src/jni/org_gnu_gdk_PixbufAnimation.c: In function `Java_org_gnu_gdk_PixbufAnimation_gdk_1pixbuf_1animation_1get_1static_1image': src/jni/org_gnu_gdk_PixbufAnimation.c:105: warning: passing arg 2 of `getGObjectHandle' from incompatible pointer type GCC src/jni/org_gnu_gdk_EventClient.c GCC src/jni/org_gnu_gtk_IconSize.c GCC src/jni/org_gnu_gtk_Widget.c GCC src/jni/org_gnu_gtk_RcStyle.c GCC src/jni/org_gnu_gtk_TreeIter.c GCC src/jni/org_gnu_gtk_IconView.c src/jni/org_gnu_gtk_IconView.c: In function `Java_org_gnu_gtk_IconView_gtk_1icon_1view_1get_1item_1at_1pos': src/jni/org_gnu_gtk_IconView.c:426: warning: passing arg 4 of `gtk_icon_view_get_item_at_pos' from incompatible pointer type src/jni/org_gnu_gtk_IconView.c:426: warning: passing arg 5 of `gtk_icon_view_get_item_at_pos' from incompatible pointer type src/jni/org_gnu_gtk_IconView.c: In function `Java_org_gnu_gtk_IconView_gtk_1icon_1view_1get_1cursor': src/jni/org_gnu_gtk_IconView.c:466: warning: passing arg 2 of `gtk_icon_view_get_cursor' from incompatible pointer type src/jni/org_gnu_gtk_IconView.c:466: warning: passing arg 3 of `gtk_icon_view_get_cursor' from incompatible pointer type GCC src/jni/org_gnu_gdk_EventExpose.c GCC src/jni/org_gnu_gtk_Notebook.c GCC src/jni/org_gnu_gtk_Requisition.c GCC src/jni/org_gnu_gdk_EventSelection.c src/jni/org_gnu_gdk_EventSelection.c: In function `Java_org_gnu_gdk_EventSelection_getWindow': src/jni/org_gnu_gdk_EventSelection.c:28: warning: passing arg 2 of `getGObjectHandle' from incompatible pointer type src/jni/org_gnu_gdk_EventSelection.c: In function `Java_org_gnu_gdk_EventSelection_getRequestor': src/jni/org_gnu_gdk_EventSelection.c:84: warning: passing arg 2 of `getHandleFromPointer' makes pointer from integer without a cast GCC src/jni/org_gnu_glib_Quark.c GCC src/jni/org_gnu_gtk_GammaCurve.c GCC src/jni/org_gnu_pango_AttrFontDesc.c src/jni/org_gnu_pango_AttrFontDesc.c: In function `Java_org_gnu_pango_AttrFontDesc_getDesc': src/jni/org_gnu_pango_AttrFontDesc.c:33: warning: passing arg 4 of `getGBoxedHandle' from incompatible pointer type GCC src/jni/org_gnu_gdk_EventProximity.c src/jni/org_gnu_gdk_EventProximity.c: In function `Java_org_gnu_gdk_EventProximity_getDevice': src/jni/org_gnu_gdk_EventProximity.c:61: warning: passing arg 2 of `getGObjectHandle' from incompatible pointer type GCC src/jni/org_gnu_gtk_TearoffMenuItem.c GCC src/jni/org_gnu_gtk_Paned.c GCC src/jni/org_gnu_gtk_TreePath.c GCC src/jni/org_gnu_gdk_Property.c GCC src/jni/org_gnu_gtk_TextTagTable.c GCC src/jni/org_gnu_gtk_Action.c GCC src/jni/org_gnu_gtk_ImageMenuItem.c GCC src/jni/org_gnu_gtk_CellRendererCombo.c src/jni/org_gnu_gtk_CellRendererCombo.c: In function `Java_org_gnu_gtk_CellRendererCombo_getModel': src/jni/org_gnu_gtk_CellRendererCombo.c:29: warning: passing arg 2 of `getGObjectHandle' from incompatible pointer type GCC src/jni/org_gnu_gtk_Invisible.c GCC src/jni/org_gnu_gtk_ColorSelection.c src/jni/org_gnu_gtk_ColorSelection.c: In function `Java_org_gnu_gtk_ColorSelection_gtk_1color_1selection_1get_1previous_1color': src/jni/org_gnu_gtk_ColorSelection.c:179: warning: `return' with a value, in function returning void GCC src/jni/org_gnu_gdk_Atom.c GCC src/jni/org_gnu_gtk_CellRendererPixbuf.c GCC src/jni/org_gnu_gtk_Window.c src/jni/org_gnu_gtk_Window.c: In function `Java_org_gnu_gtk_Window_gtk_1window_1get_1icon_1list': src/jni/org_gnu_gtk_Window.c:435: warning: passing arg 2 of `getGObjectHandlesFromGList' from incompatible pointer type GCC src/jni/org_gnu_gtk_Arrow.c GCC src/jni/org_gnu_gtk_FileFilter.c GCC src/jni/org_gnu_gtk_Bin.c GCC src/jni/org_gnu_gtk_MenuBar.c GCC src/jni/org_gnu_gtk_Box.c GCC src/jni/org_gnu_gtk_Gtk.c GCC src/jni/org_gnu_gdk_Image.c src/jni/org_gnu_gdk_Image.c: In function `Java_org_gnu_gdk_Image_getVisual': src/jni/org_gnu_gdk_Image.c:26: warning: passing arg 2 of `getGObjectHandle' from incompatible pointer type src/jni/org_gnu_gdk_Image.c: In function `Java_org_gnu_gdk_Image_gdk_1image_1new': src/jni/org_gnu_gdk_Image.c:154: warning: passing arg 2 of `getGObjectHandle' from incompatible pointer type src/jni/org_gnu_gdk_Image.c: In function `Java_org_gnu_gdk_Image_gdk_1image_1get_1colormap': src/jni/org_gnu_gdk_Image.c:204: warning: passing arg 2 of `getGObjectHandle' from incompatible pointer type GCC src/jni/org_gnu_pango_LayoutLine.c GCC src/jni/org_gnu_gtk_FontButton.c GCC src/jni/org_gnu_gdk_EventWindowState.c GCC src/jni/org_gnu_gtk_TextAppearance.c GCC src/jni/org_gnu_pango_FontFace.c src/jni/org_gnu_pango_FontFace.c: In function `Java_org_gnu_pango_FontFace_pango_1font_1face_1describe': src/jni/org_gnu_pango_FontFace.c:40: warning: passing arg 5 of `getGBoxedHandle' from incompatible pointer type GCC src/jni/org_gnu_gtk_CellRendererToggle.c GCC src/jni/org_gnu_gtk_TextBuffer.c GCC src/jni/org_gnu_gtk_TextIter.c GCC src/jni/org_gnu_gtk_VScale.c GCC src/jni/org_gnu_gtk_FileChooserButton.c GCC src/jni/org_gnu_gtk_ActionGroup.c GCC src/jni/org_gnu_gtk_Expander.c GCC src/jni/org_gnu_gtk_WindowGroup.c GCC src/jni/org_gnu_gdk_EventProperty.c GCC src/jni/org_gnu_gtk_TreeView.c GCC src/jni/org_gnu_gtk_MenuToolButton.c GCC src/jni/org_gnu_pango_Context.c src/jni/org_gnu_pango_Context.c: In function `Java_org_gnu_pango_Context_pango_1context_1load_1font': src/jni/org_gnu_pango_Context.c:69: warning: passing arg 2 of `getGObjectHandle' from incompatible pointer type GCC src/jni/org_gnu_pango_AttrColor.c GCC src/jni/org_gnu_gtk_AspectFrame.c GCC src/jni/org_gnu_gdk_Colormap.c src/jni/org_gnu_gdk_Colormap.c: In function `getColorHandle': src/jni/org_gnu_gdk_Colormap.c:169: warning: passing arg 3 of `getGBoxedHandle' makes integer from pointer without a cast GCC src/jni/org_gnu_gtk_ItemFactoryEntry.c GCC src/jni/org_gnu_gtk_TextMark.c GCC src/jni/org_gnu_gtk_Image.c GCC src/jni/org_gnu_gtk_ToolItem.c GCC src/jni/org_gnu_gtk_ToolBar.c GCC src/jni/org_gnu_gdk_Point.c GCC src/jni/org_gnu_gdk_EventFocus.c GCC src/jni/org_gnu_gdk_KeymapKey.c GCC src/jni/org_gnu_pango_FontFamily.c src/jni/org_gnu_pango_FontFamily.c: In function `Java_org_gnu_pango_FontFamily_pango_1font_1family_1list_1faces': src/jni/org_gnu_pango_FontFamily.c:41: warning: return makes pointer from integer without a cast GCC src/jni/org_gnu_gtk_TextChildAnchor.c GCC src/jni/org_gnu_gdk_Cursor.c GCC src/jni/org_gnu_gtk_CellRendererText.c GCC src/jni/org_gnu_gtk_EditableHelpers.c GCC src/jni/org_gnu_gdk_GC.c src/jni/org_gnu_gdk_GC.c: In function `Java_org_gnu_gdk_GC_gdk_1gc_1new': src/jni/org_gnu_gdk_GC.c:95: warning: passing arg 2 of `getGObjectHandle' from incompatible pointer type src/jni/org_gnu_gdk_GC.c: In function `Java_org_gnu_gdk_GC_gdk_1gc_1get_1screen': src/jni/org_gnu_gdk_GC.c:106: warning: passing arg 2 of `getGObjectHandle' from incompatible pointer type src/jni/org_gnu_gdk_GC.c: In function `Java_org_gnu_gdk_GC_gdk_1gc_1get_1colormap': src/jni/org_gnu_gdk_GC.c:342: warning: passing arg 2 of `getGObjectHandle' from incompatible pointer type GCC src/jni/org_gnu_glib_MainLoop.c GCC src/jni/org_gnu_gdk_Screen.c GCC src/jni/org_gnu_gdk_PangoAttrEmbossed.c src/jni/org_gnu_gdk_PangoAttrEmbossed.c: In function `Java_org_gnu_gdk_PangoAttrEmbossed_gdk_1pango_1attr_1embossed_1new': src/jni/org_gnu_gdk_PangoAttrEmbossed.c:39: warning: passing arg 4 of `getStructHandle' from incompatible pointer type GCC src/jni/org_gnu_gtk_UIManager.c GCC src/jni/org_gnu_gtk_SelectionData.c GCC src/jni/org_gnu_gtk_HPaned.c GCC src/jni/org_gnu_gtk_TargetEntry.c GCC src/jni/org_gnu_glib_Error.c GCC src/jni/org_gnu_gtk_VRuler.c GCC src/jni/org_gnu_gdk_WindowAttr.c GCC src/jni/org_gnu_atk_AtkObject.c GCC src/jni/org_gnu_gtk_RadioToolButton.c GCC src/jni/org_gnu_gtk_TextAttributes.c GCC src/jni/org_gnu_gtk_EventBox.c GCC src/jni/org_gnu_gdk_Segment.c GCC src/jni/org_gnu_gdk_EventSetting.c GCC src/jni/org_gnu_atk_StateType.c GCC src/jni/org_gnu_pango_GlyphString.c GCC src/jni/org_gnu_gtk_FileChooserHelper.c GCC src/jni/org_gnu_gdk_EventConfigure.c GCC src/jni/org_gnu_gdk_Color.c GCC src/jni/org_gnu_gtk_BindingSet.c GCC src/jni/org_gnu_glib_Timer.c GCC src/jni/org_gnu_gtk_TextView.c src/jni/org_gnu_gtk_TextView.c: In function `Java_org_gnu_gtk_TextView_gtk_1text_1view_1get_1iter_1at_1location': src/jni/org_gnu_gtk_TextView.c:254: warning: passing arg 4 of `getGBoxedHandle' from incompatible pointer type GCC src/jni/org_gnu_pango_AttrList.c GCC src/jni/org_gnu_pango_AttrString.c GCC src/jni/org_gnu_gtk_Button.c GCC src/jni/org_gnu_pango_AttrLanguage.c GCC src/jni/org_gnu_atk_State.c GCC src/jni/org_gnu_gtk_HBox.c GCC src/jni/org_gnu_atk_Hyperlink.c src/jni/org_gnu_atk_Hyperlink.c: In function `Java_org_gnu_atk_Hyperlink_atk_1hyperlink_1get_1object': src/jni/org_gnu_atk_Hyperlink.c:50: warning: return makes pointer from integer without a cast GCC src/jni/org_gnu_gdk_PixbufAnimationIter.c src/jni/org_gnu_gdk_PixbufAnimationIter.c: In function `Java_org_gnu_gdk_PixbufAnimationIter_gdk_1pixbuf_1animation_1iter_1get_1pixbuf': src/jni/org_gnu_gdk_PixbufAnimationIter.c:65: warning: passing arg 2 of `getGObjectHandle' from incompatible pointer type GCC src/jni/org_gnu_gtk_Adjustment.c GCC src/jni/org_gnu_gtk_ToolTips.c GCC src/jni/org_gnu_gdk_Span.c GCC src/jni/org_gnu_gtk_Container.c GCC src/jni/org_gnu_gtk_FileChooserDialog.c GCC src/jni/org_gnu_gdk_DragContext.c GCC src/jni/org_gnu_gtk_Alignment.c GCC src/jni/org_gnu_gtk_ColorSelectionDialog.c GCC src/jni/org_gnu_gtk_TreeSortableHelper.c GCC src/jni/org_gnu_gtk_DrawingArea.c GCC src/jni/org_gnu_gtk_HSeparator.c GCC src/jni/org_gnu_gtk_Combo.c GCC src/jni/org_gnu_gtk_Range.c GCC src/jni/org_gnu_gtk_TreeViewColumn.c GCC src/jni/org_gnu_gtk_HandleBox.c GCC src/jni/org_gnu_gtk_AccelLabel.c GCC src/jni/org_gnu_gdk_PangoAttrStipple.c src/jni/org_gnu_gdk_PangoAttrStipple.c: In function `Java_org_gnu_gdk_PangoAttrStipple_getStipple': src/jni/org_gnu_gdk_PangoAttrStipple.c:27: warning: passing arg 2 of `getGObjectHandle' from incompatible pointer type src/jni/org_gnu_gdk_PangoAttrStipple.c: In function `Java_org_gnu_gdk_PangoAttrStipple_gdk_1pango_1attr_1stipple_1new': src/jni/org_gnu_gdk_PangoAttrStipple.c:39: warning: passing arg 4 of `getStructHandle' from incompatible pointer type GCC src/jni/org_gnu_gtk_Border.c GCC src/jni/org_gnu_gtk_CheckMenuItem.c GCC src/jni/org_gnu_gtk_VSeparator.c GCC src/jni/org_gnu_gtk_Item.c GCC src/jni/org_gnu_gdk_Pixbuf.c src/jni/org_gnu_gdk_Pixbuf.c: In function `Java_org_gnu_gdk_Pixbuf_gdk_1pixbuf_1get_1from_1drawable': src/jni/org_gnu_gdk_Pixbuf.c:137: warning: passing arg 2 of `getGObjectHandle' from incompatible pointer type src/jni/org_gnu_gdk_Pixbuf.c: In function `Java_org_gnu_gdk_Pixbuf_gdk_1pixbuf_1get_1from_1image': src/jni/org_gnu_gdk_Pixbuf.c:151: warning: passing arg 2 of `getGObjectHandle' from incompatible pointer type src/jni/org_gnu_gdk_Pixbuf.c: In function `Java_org_gnu_gdk_Pixbuf_gdk_1pixbuf_1new': src/jni/org_gnu_gdk_Pixbuf.c:260: warning: passing arg 2 of `getGObjectHandle' from incompatible pointer type src/jni/org_gnu_gdk_Pixbuf.c: In function `Java_org_gnu_gdk_Pixbuf_gdk_1pixbuf_1copy': src/jni/org_gnu_gdk_Pixbuf.c:270: warning: passing arg 2 of `getGObjectHandle' from incompatible pointer type src/jni/org_gnu_gdk_Pixbuf.c: In function `Java_org_gnu_gdk_Pixbuf_gdk_1pixbuf_1new_1subpixbuf': src/jni/org_gnu_gdk_Pixbuf.c:286: warning: passing arg 2 of `getGObjectHandle' from incompatible pointer type src/jni/org_gnu_gdk_Pixbuf.c: In function `Java_org_gnu_gdk_Pixbuf_gdk_1pixbuf_1new_1from_1file': src/jni/org_gnu_gdk_Pixbuf.c:298: warning: passing arg 2 of `getGObjectHandle' from incompatible pointer type src/jni/org_gnu_gdk_Pixbuf.c: In function `Java_org_gnu_gdk_Pixbuf_gdk_1pixbuf_1new_1from_1file_1at_1size': src/jni/org_gnu_gdk_Pixbuf.c:314: warning: passing arg 2 of `getGObjectHandle' from incompatible pointer type src/jni/org_gnu_gdk_Pixbuf.c: In function `Java_org_gnu_gdk_Pixbuf_gdk_1pixbuf_1new_1from_1file_1at_1scale': src/jni/org_gnu_gdk_Pixbuf.c:330: warning: passing arg 2 of `getGObjectHandle' from incompatible pointer type src/jni/org_gnu_gdk_Pixbuf.c: In function `Java_org_gnu_gdk_Pixbuf_gdk_1pixbuf_1new_1from_1xpm_1data': src/jni/org_gnu_gdk_Pixbuf.c:367: warning: passing arg 2 of `getGObjectHandle' from incompatible pointer type src/jni/org_gnu_gdk_Pixbuf.c: In function `Java_org_gnu_gdk_Pixbuf_gdk_1pixbuf_1new_1from_1inline': src/jni/org_gnu_gdk_Pixbuf.c:385: warning: passing arg 2 of `getGObjectHandle' from incompatible pointer type src/jni/org_gnu_gdk_Pixbuf.c: In function `Java_org_gnu_gdk_Pixbuf_gdk_1pixbuf_1rotate_1simple': src/jni/org_gnu_gdk_Pixbuf.c:446: warning: passing arg 2 of `getGObjectHandle' from incompatible pointer type src/jni/org_gnu_gdk_Pixbuf.c: In function `Java_org_gnu_gdk_Pixbuf_gdk_1pixbuf_1flip': src/jni/org_gnu_gdk_Pixbuf.c:457: warning: passing arg 2 of `getGObjectHandle' from incompatible pointer type src/jni/org_gnu_gdk_Pixbuf.c: In function `Java_org_gnu_gdk_Pixbuf_gdk_1pixbuf_1add_1alpha': src/jni/org_gnu_gdk_Pixbuf.c:486: warning: passing arg 2 of `getGObjectHandle' from incompatible pointer type src/jni/org_gnu_gdk_Pixbuf.c: In function `Java_org_gnu_gdk_Pixbuf_gdk_1pixbuf_1scale_1simple': src/jni/org_gnu_gdk_Pixbuf.c:614: warning: passing arg 2 of `getGObjectHandle' from incompatible pointer type src/jni/org_gnu_gdk_Pixbuf.c: In function `Java_org_gnu_gdk_Pixbuf_gdk_1pixbuf_1composite_1color_1simple': src/jni/org_gnu_gdk_Pixbuf.c:634: warning: passing arg 2 of `getGObjectHandle' from incompatible pointer type src/jni/org_gnu_gdk_Pixbuf.c: In function `Java_org_gnu_gdk_Pixbuf_gdk_1pixbuf_1get_1option': src/jni/org_gnu_gdk_Pixbuf.c:653: warning: passing arg 5 of pointer to function discards qualifiers from pointer target type GCC src/jni/org_gnu_pango_AttrShape.c GCC src/jni/org_gnu_gdk_EventVisibility.c GCC src/jni/org_gnu_pango_Language.c GCC src/jni/org_gnu_gtk_HButtonBox.c LINK lib/libgtkjni-2.8.so Steps to reproduce: 1. 2. 3. Actual results: Expected results: Does this happen every time? Other information:
Created attachment 52430 [details] [review] Fixes JNI compile warnings Fixes the above mentioned jni warnings. In most cases this consisted of a cast or changing a variable type to unsigned
Created attachment 52437 [details] [review] JNI warning fix Changes to fixes in earlier patch (missing includes, casting using G_OBJECT instead of (GObject *))
Patch committed to CVS HEAD