diff options
author | Maximiliano Curia <maxy@debian.org> | 2015-11-07 16:00:53 +0100 |
---|---|---|
committer | Maximiliano Curia <maxy@debian.org> | 2015-11-08 18:39:47 +0100 |
commit | 0a027b0f0e2f407c5557dd12e744ba81b0af7d53 (patch) | |
tree | 1e8047423c09cdedb57bdade98c46cfd8bd2a8c9 | |
parent | 8406b4ca46e306a0a7ce61a7ab92570c7ca8c147 (diff) |
clang_FTBFS_Wreturn-type
Gbp-Pq: Name clang_FTBFS_Wreturn-type.patch
-rw-r--r-- | src/model/item-data.c | 4 | ||||
-rw-r--r-- | src/plot-add-function.c | 2 | ||||
-rw-r--r-- | src/splash.c | 4 |
3 files changed, 5 insertions, 5 deletions
diff --git a/src/model/item-data.c b/src/model/item-data.c index c8d71c7..973db0d 100644 --- a/src/model/item-data.c +++ b/src/model/item-data.c @@ -514,8 +514,8 @@ item_data_has_properties (ItemData *data) { ItemDataClass *id_class; - g_return_if_fail (data != NULL); - g_return_if_fail (IS_ITEM_DATA (data)); + g_return_val_if_fail (data != NULL, NULL); + g_return_val_if_fail (IS_ITEM_DATA (data), NULL); id_class = ITEM_DATA_CLASS (G_OBJECT_GET_CLASS (data)); if (id_class->has_properties) { diff --git a/src/plot-add-function.c b/src/plot-add-function.c index 478595d..92d827f 100644 --- a/src/plot-add-function.c +++ b/src/plot-add-function.c @@ -104,7 +104,7 @@ int plot_add_function_show (OreganoEngine *engine, SimulationData *current) gtk_widget_destroy (GTK_WIDGET (warning)); plot_add_function_show (engine, current); gtk_widget_destroy (GTK_WIDGET (dialog)); - return; + return 0; } } if ((result == GTK_RESPONSE_OK) && diff --git a/src/splash.c b/src/splash.c index 65094f2..ff08de0 100644 --- a/src/splash.c +++ b/src/splash.c @@ -58,12 +58,12 @@ oregano_splash_new () OREGANO_GLADEDIR "/splash.glade", OREGANO_GLADEDIR "/splash.xpm"); oregano_error_with_title (_("Could not create textbox properties dialog"), msg); g_free (msg); - return; + return NULL; } gui = glade_xml_new (OREGANO_GLADEDIR "/splash.glade", NULL, NULL); if (!gui) { oregano_error (_("Could not create textbox properties dialog")); - return; + return NULL; } sp = g_new0 (Splash, 1); |