[libgweather] Fix "void function should not return a value" error for clang



commit 770a163dcfdeb9e7a388d20f10a8dac69bb5c9e1
Author: Ting-Wei Lan <lantw src gnome org>
Date:   Thu Apr 3 17:37:07 2014 +0800

    Fix "void function should not return a value" error for clang

 libgweather/gweather-location.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libgweather/gweather-location.c b/libgweather/gweather-location.c
index 4efb778..6061269 100644
--- a/libgweather/gweather-location.c
+++ b/libgweather/gweather-location.c
@@ -764,7 +764,7 @@ gweather_location_detect_nearest_city (GWeatherLocation    *loc,
 {
     ArgData *data;
 
-    g_return_val_if_fail (loc == NULL || loc->level < GWEATHER_LOCATION_CITY, NULL);
+    g_return_if_fail (loc == NULL || loc->level < GWEATHER_LOCATION_CITY);
 
     if (loc == NULL)
         loc = gweather_location_get_world ();


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]