[gnome-bluetooth] lib: Use g_return_if_fail() for function returning void



commit ac5ac1b0ddaf3c1a973c60f77f451458408b2f44
Author: Colin Walters <walters verbum org>
Date:   Thu Jan 2 11:09:21 2014 -0500

    lib: Use g_return_if_fail() for function returning void
    
    Squashes a compiler warning I saw from Continuous.

 lib/bluetooth-client.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/lib/bluetooth-client.c b/lib/bluetooth-client.c
index 35f1949..447ed5a 100644
--- a/lib/bluetooth-client.c
+++ b/lib/bluetooth-client.c
@@ -1514,7 +1514,7 @@ bluetooth_client_setup_device (BluetoothClient          *client,
        gboolean paired;
        GError *err = NULL;
 
-       g_return_val_if_fail (BLUETOOTH_IS_CLIENT (client), FALSE);
+       g_return_if_fail (BLUETOOTH_IS_CLIENT (client));
 
        simple = g_simple_async_result_new (G_OBJECT (client),
                                            callback,


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