1
0
mirror of https://github.com/haiwen/libsearpc.git synced 2025-09-02 13:25:25 +00:00

[lib] cleanup some compiler warnings

- lib/searpc-client.c:353:1: warning: control reaches end of non-void function [-Wreturn-type]
   - lib/searpc-utils.c:93:13: warning: enumeration value 'JSON_ARRAY' not handled in switch [-Wswitch]
This commit is contained in:
Chilledheart
2014-06-29 12:57:41 +08:00
parent f8c1c55665
commit ba0d080d3d
2 changed files with 8 additions and 0 deletions

View File

@@ -350,6 +350,8 @@ searpc_client_generic_callback (char *retstr, size_t len,
}
}
g_free (data);
return 0;
}

View File

@@ -172,6 +172,12 @@ static gboolean json_deserialize_pspec (GValue *value, GParamSpec *pspec, json_t
g_value_set_object (value, NULL);
return TRUE;
}
break;
case JSON_ARRAY:
return FALSE;
break;
default:
return FALSE;
}
return FALSE;