From 19a9f6592f2ea08a2efdadc8ec08a96cad201720 Mon Sep 17 00:00:00 2001 From: Bradley Smith Date: Sat, 8 Mar 2008 00:41:15 +0000 Subject: Add -Wall and -Wfatal-errors compile flags, and correct code to compile cleanly. Signed-off-by: Bradley Smith --- lib/textplugin.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'lib/textplugin.c') diff --git a/lib/textplugin.c b/lib/textplugin.c index da08710..61110d5 100644 --- a/lib/textplugin.c +++ b/lib/textplugin.c @@ -21,6 +21,7 @@ */ #include +#include #include #include "configs.h" #include "textplugin.h" @@ -127,25 +128,25 @@ text_plugin_init (GObject * object) } static GObject * -text_plugin_constructor (GType type, - guint n_construct_properties, +text_plugin_constructor (GType type, + guint n_construct_properties, GObjectConstructParam *construct_properties) { GObject *object; /* Chain up to the parent first */ object = parent_class->constructor (type, n_construct_properties, construct_properties); - + g_printf ("GNU Robots starting..\n"); - + return object; } -static void +static void text_plugin_dispose (GObject * object) { TextPlugin *text = TEXT_PLUGIN (object); - + if (text->map != NULL) { g_object_unref (G_OBJECT (text->map)); -- cgit v1.1