[Xfce4-commits] <xfdesktop:master> Fix some compiler warnings I get when compiling with full debug.
Nick Schermer
noreply at xfce.org
Tue Oct 6 12:58:01 CEST 2009
Updating branch refs/heads/master
to c5551a9e47656998e27d365daf1c612cbdb14874 (commit)
from 05a34e8ec2ff6b7d04f2fcef73e4f0c116f0d7d5 (commit)
commit c5551a9e47656998e27d365daf1c612cbdb14874
Author: Nick Schermer <nick at xfce.org>
Date: Tue Oct 6 12:55:58 2009 +0200
Fix some compiler warnings I get when compiling with full debug.
common/desktop-menu-utils.h | 2 +-
panel-plugin/desktop-menu-plugin.c | 3 +++
src/menu.h | 4 ++--
src/windowlist.h | 2 +-
src/xfce-backdrop.h | 2 +-
src/xfce-desktop.h | 2 +-
src/xfdesktop-file-icon-manager.h | 2 +-
src/xfdesktop-file-icon.h | 2 +-
src/xfdesktop-icon-view-manager.h | 2 +-
src/xfdesktop-icon-view.h | 2 +-
src/xfdesktop-icon.h | 2 +-
src/xfdesktop-regular-file-icon.h | 2 +-
src/xfdesktop-special-file-icon.h | 2 +-
src/xfdesktop-volume-icon.h | 2 +-
src/xfdesktop-window-icon-manager.h | 2 +-
src/xfdesktop-window-icon.h | 2 +-
16 files changed, 19 insertions(+), 16 deletions(-)
diff --git a/common/desktop-menu-utils.h b/common/desktop-menu-utils.h
index 9a12848..b6da4b6 100644
--- a/common/desktop-menu-utils.h
+++ b/common/desktop-menu-utils.h
@@ -23,7 +23,7 @@
G_BEGIN_DECLS
-gchar *xfce_desktop_get_menufile();
+gchar *xfce_desktop_get_menufile(void);
G_END_DECLS
diff --git a/panel-plugin/desktop-menu-plugin.c b/panel-plugin/desktop-menu-plugin.c
index 6f3c365..503cd12 100644
--- a/panel-plugin/desktop-menu-plugin.c
+++ b/panel-plugin/desktop-menu-plugin.c
@@ -53,6 +53,9 @@
#include <libxfce4panel/xfce-panel-plugin.h>
#include <libxfce4panel/xfce-panel-convenience.h>
+#ifdef HAVE_LIBEXO
+#include <exo/exo.h>
+#endif
#ifdef HAVE_THUNAR_VFS
#include <thunar-vfs/thunar-vfs.h>
#endif
diff --git a/src/menu.h b/src/menu.h
index db514ed..1abd799 100644
--- a/src/menu.h
+++ b/src/menu.h
@@ -33,8 +33,8 @@ G_BEGIN_DECLS
void menu_init(XfconfChannel *channel);
void menu_attach(XfceDesktop *desktop);
-void menu_reload();
-void menu_cleanup();
+void menu_reload(void);
+void menu_cleanup(void);
G_END_DECLS
diff --git a/src/windowlist.h b/src/windowlist.h
index f48ca05..d8cf793 100644
--- a/src/windowlist.h
+++ b/src/windowlist.h
@@ -33,7 +33,7 @@ G_BEGIN_DECLS
void windowlist_init(XfconfChannel *channel);
void windowlist_attach(XfceDesktop *desktop);
-void windowlist_cleanup();
+void windowlist_cleanup(void);
G_END_DECLS
diff --git a/src/xfce-backdrop.h b/src/xfce-backdrop.h
index 5997d2a..d193644 100644
--- a/src/xfce-backdrop.h
+++ b/src/xfce-backdrop.h
@@ -72,7 +72,7 @@ struct _XfceBackdropClass
void (*changed)(XfceBackdrop *backdrop);
};
-GType xfce_backdrop_get_type () G_GNUC_CONST;
+GType xfce_backdrop_get_type (void) G_GNUC_CONST;
XfceBackdrop *xfce_backdrop_new (GdkVisual *visual);
diff --git a/src/xfce-desktop.h b/src/xfce-desktop.h
index 8fa80a6..d3173ed 100644
--- a/src/xfce-desktop.h
+++ b/src/xfce-desktop.h
@@ -71,7 +71,7 @@ struct _XfceDesktopClass
GtkMenuShell *menu);
};
-GType xfce_desktop_get_type () G_GNUC_CONST;
+GType xfce_desktop_get_type (void) G_GNUC_CONST;
GtkWidget *xfce_desktop_new(GdkScreen *gscreen,
XfconfChannel *channel,
diff --git a/src/xfdesktop-file-icon-manager.h b/src/xfdesktop-file-icon-manager.h
index 62ab221..626bb55 100644
--- a/src/xfdesktop-file-icon-manager.h
+++ b/src/xfdesktop-file-icon-manager.h
@@ -51,7 +51,7 @@ struct _XfdesktopFileIconManagerClass
GObjectClass parent;
};
-GType xfdesktop_file_icon_manager_get_type() G_GNUC_CONST;
+GType xfdesktop_file_icon_manager_get_type(void) G_GNUC_CONST;
XfdesktopIconViewManager *xfdesktop_file_icon_manager_new(ThunarVfsPath *folder,
XfconfChannel *channel);
diff --git a/src/xfdesktop-file-icon.h b/src/xfdesktop-file-icon.h
index 1e2bf92..050a160 100644
--- a/src/xfdesktop-file-icon.h
+++ b/src/xfdesktop-file-icon.h
@@ -61,7 +61,7 @@ struct _XfdesktopFileIconClass
gboolean (*delete_file)(XfdesktopFileIcon *icon);
};
-GType xfdesktop_file_icon_get_type() G_GNUC_CONST;
+GType xfdesktop_file_icon_get_type(void) G_GNUC_CONST;
G_CONST_RETURN ThunarVfsInfo *xfdesktop_file_icon_peek_info(XfdesktopFileIcon *icon);
void xfdesktop_file_icon_update_info(XfdesktopFileIcon *icon,
diff --git a/src/xfdesktop-icon-view-manager.h b/src/xfdesktop-icon-view-manager.h
index 6778cbb..3170cd2 100644
--- a/src/xfdesktop-icon-view-manager.h
+++ b/src/xfdesktop-icon-view-manager.h
@@ -70,7 +70,7 @@ struct _XfdesktopIconViewManagerIface
guint time_);
};
-GType xfdesktop_icon_view_manager_get_type() G_GNUC_CONST;
+GType xfdesktop_icon_view_manager_get_type(void) G_GNUC_CONST;
/* virtual function accessors */
diff --git a/src/xfdesktop-icon-view.h b/src/xfdesktop-icon-view.h
index 42ddd6f..4961044 100644
--- a/src/xfdesktop-icon-view.h
+++ b/src/xfdesktop-icon-view.h
@@ -68,7 +68,7 @@ struct _XfdesktopIconViewClass
gint count);
};
-GType xfdesktop_icon_view_get_type() G_GNUC_CONST;
+GType xfdesktop_icon_view_get_type(void) G_GNUC_CONST;
GtkWidget *xfdesktop_icon_view_new(XfdesktopIconViewManager *manager);
diff --git a/src/xfdesktop-icon.h b/src/xfdesktop-icon.h
index f0c84bf..b838ed5 100644
--- a/src/xfdesktop-icon.h
+++ b/src/xfdesktop-icon.h
@@ -77,7 +77,7 @@ struct _XfdesktopIconClass
GtkWidget *menu);
};
-GType xfdesktop_icon_get_type() G_GNUC_CONST;
+GType xfdesktop_icon_get_type(void) G_GNUC_CONST;
/* xfdesktop virtual function accessors */
diff --git a/src/xfdesktop-regular-file-icon.h b/src/xfdesktop-regular-file-icon.h
index 09c6536..6014627 100644
--- a/src/xfdesktop-regular-file-icon.h
+++ b/src/xfdesktop-regular-file-icon.h
@@ -50,7 +50,7 @@ struct _XfdesktopRegularFileIconClass
XfdesktopFileIconClass parent;
};
-GType xfdesktop_regular_file_icon_get_type() G_GNUC_CONST;
+GType xfdesktop_regular_file_icon_get_type(void) G_GNUC_CONST;
XfdesktopRegularFileIcon *xfdesktop_regular_file_icon_new(ThunarVfsInfo *info,
GdkScreen *screen);
diff --git a/src/xfdesktop-special-file-icon.h b/src/xfdesktop-special-file-icon.h
index 5ac5f8d..4f431f5 100644
--- a/src/xfdesktop-special-file-icon.h
+++ b/src/xfdesktop-special-file-icon.h
@@ -57,7 +57,7 @@ typedef enum
XFDESKTOP_SPECIAL_FILE_ICON_TRASH,
} XfdesktopSpecialFileIconType;
-GType xfdesktop_special_file_icon_get_type() G_GNUC_CONST;
+GType xfdesktop_special_file_icon_get_type(void) G_GNUC_CONST;
XfdesktopSpecialFileIcon *xfdesktop_special_file_icon_new(XfdesktopSpecialFileIconType type,
GdkScreen *screen);
diff --git a/src/xfdesktop-volume-icon.h b/src/xfdesktop-volume-icon.h
index 010da4c..5ff0fd2 100644
--- a/src/xfdesktop-volume-icon.h
+++ b/src/xfdesktop-volume-icon.h
@@ -50,7 +50,7 @@ struct _XfdesktopVolumeIconClass
XfdesktopFileIconClass parent;
};
-GType xfdesktop_volume_icon_get_type() G_GNUC_CONST;
+GType xfdesktop_volume_icon_get_type(void) G_GNUC_CONST;
XfdesktopVolumeIcon *xfdesktop_volume_icon_new(ThunarVfsVolume *volume,
GdkScreen *screen);
diff --git a/src/xfdesktop-window-icon-manager.h b/src/xfdesktop-window-icon-manager.h
index 2b97fd9..2c9c6a8 100644
--- a/src/xfdesktop-window-icon-manager.h
+++ b/src/xfdesktop-window-icon-manager.h
@@ -49,7 +49,7 @@ struct _XfdesktopWindowIconManagerClass
GObjectClass parent;
};
-GType xfdesktop_window_icon_manager_get_type() G_GNUC_CONST;
+GType xfdesktop_window_icon_manager_get_type(void) G_GNUC_CONST;
XfdesktopIconViewManager *xfdesktop_window_icon_manager_new(GdkScreen *gscreen);
diff --git a/src/xfdesktop-window-icon.h b/src/xfdesktop-window-icon.h
index 31b33d6..f0a7fd8 100644
--- a/src/xfdesktop-window-icon.h
+++ b/src/xfdesktop-window-icon.h
@@ -49,7 +49,7 @@ struct _XfdesktopWindowIconClass
XfdesktopIconClass parent;
};
-GType xfdesktop_window_icon_get_type() G_GNUC_CONST;
+GType xfdesktop_window_icon_get_type(void) G_GNUC_CONST;
XfdesktopWindowIcon *xfdesktop_window_icon_new(WnckWindow *window,
gint workspace);
More information about the Xfce4-commits
mailing list