mirror of https://gitee.com/bigwinds/arangodb
fixed warnings
This commit is contained in:
parent
44436e97aa
commit
4196846b0c
|
@ -149,11 +149,11 @@ static mrb_value MR_Time (mrb_state* mrb, mrb_value self) {
|
|||
static mrb_value MR_JsonParse (mrb_state* mrb, mrb_value self) {
|
||||
char* errmsg;
|
||||
char* s;
|
||||
int res;
|
||||
/* int res; */
|
||||
size_t l;
|
||||
TRI_json_t* json;
|
||||
|
||||
res = mrb_get_args(mrb, "s", &s, &l);
|
||||
/* res = */ mrb_get_args(mrb, "s", &s, &l);
|
||||
|
||||
if (s == NULL) {
|
||||
return mrb_nil_value();
|
||||
|
|
|
@ -905,6 +905,8 @@ static bool FillShapeValueArray (TRI_shaper_t* shaper, TRI_shape_value_t* dst, T
|
|||
dst->_value = (ptr = TRI_Allocate(shaper->_memoryZone, dst->_size, true));
|
||||
|
||||
if (ptr == NULL) {
|
||||
e = values + n;
|
||||
|
||||
for (p = values; p < e; ++p) {
|
||||
if (p->_value != NULL) {
|
||||
TRI_Free(shaper->_memoryZone, p->_value);
|
||||
|
|
|
@ -704,6 +704,8 @@ static bool FillShapeValueArray (TRI_shaper_t* shaper,
|
|||
dst->_value = (ptr = (char*) TRI_Allocate(shaper->_memoryZone, dst->_size, true));
|
||||
|
||||
if (ptr == NULL) {
|
||||
e = values + n;
|
||||
|
||||
for (p = values; p < e; ++p) {
|
||||
if (p->_value != NULL) {
|
||||
TRI_Free(shaper->_memoryZone, p->_value);
|
||||
|
|
|
@ -504,7 +504,8 @@ static TRI_doc_mptr_t RollbackUpdate (TRI_sim_collection_t* sim,
|
|||
else {
|
||||
TRI_doc_mptr_t mptr;
|
||||
TRI_set_errno(TRI_ERROR_INTERNAL);
|
||||
mptr._did = 0;
|
||||
|
||||
memset(&mptr, 0, sizeof(mptr));
|
||||
return mptr;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue