[pve-devel] [PATCH cluster] use g_return_val_fail as cfs_loop_stop_worker returns void
Thomas Lamprecht
t.lamprecht at proxmox.com
Fri Aug 5 12:34:04 CEST 2016
do not use g_return_val_if_fail because the cfs_loop_stop_worker
function does not return anything and newer versions of GCC complain
about that (I used gcc version 5.4.0 20160609 (Debian 5.4.0-6 from
stretch)
Signed-off-by: Thomas Lamprecht <t.lamprecht at proxmox.com>
---
data/src/loop.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/data/src/loop.c b/data/src/loop.c
index 705cf4b..8de784c 100644
--- a/data/src/loop.c
+++ b/data/src/loop.c
@@ -361,7 +361,7 @@ cfs_loop_start_worker(cfs_loop_t *loop)
void
cfs_loop_stop_worker(cfs_loop_t *loop)
{
- g_return_val_if_fail(loop != NULL, NULL);
+ g_return_if_fail(loop != NULL);
cfs_debug("cfs_loop_stop_worker");
--
2.1.4
More information about the pve-devel
mailing list