diff options
author | Bradley Smith | 2008-03-07 18:46:31 +0000 |
---|---|---|
committer | Bradley Smith | 2008-03-07 18:46:31 +0000 |
commit | 371d4c3202de9fa52ab0ffd0a5726a18e0479a12 (patch) | |
tree | 4c299cb10acaf0717215a94a169c987fad87b7c0 /lib/textplugin.c | |
parent | Adjust bootstrap script to not autorun configure (diff) | |
download | gnurobots-371d4c3202de9fa52ab0ffd0a5726a18e0479a12.tar.gz |
Add -pedantic-errors and -Werror flags to compile, and fix code to comply.
Signed-off-by: Bradley Smith <brad@brad-smith.co.uk>
Diffstat (limited to 'lib/textplugin.c')
-rw-r--r-- | lib/textplugin.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/textplugin.c b/lib/textplugin.c index 32a5a56..da08710 100644 --- a/lib/textplugin.c +++ b/lib/textplugin.c @@ -227,6 +227,8 @@ text_plugin_get_property (GObject * object, guint prop_id, UserInterface * user_interface_new (Map *map, GType parent_type) { + TextPlugin *text; + g_return_val_if_fail (map != NULL, NULL); g_return_val_if_fail (_parent_type != 0 || parent_type != 0, NULL); @@ -234,8 +236,7 @@ user_interface_new (Map *map, GType parent_type) _parent_type = parent_type; } - TextPlugin *text = - TEXT_PLUGIN (g_object_new (text_plugin_get_type (), + text = TEXT_PLUGIN (g_object_new (text_plugin_get_type (), "map", map, NULL)); if (text->errors) { |