1
0
Fork 0

fixed warnings

This commit is contained in:
Frank Celler 2012-05-23 17:20:26 +02:00
parent 44436e97aa
commit 4196846b0c
4 changed files with 8 additions and 3 deletions

View File

@ -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();

View File

@ -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);

View File

@ -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);

View File

@ -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;
}