Ping Yin <pkufranky@xxxxxxxxx> writes: > +static mmfile_copy_set_boundary(mmfile_t *dest, mmfile_t *src) { cc1: warnings being treated as errors diff.c:464: warning: return type defaults int > + int i; > + > + dest->size = src->size; > + dest->ptr = xmalloc(dest->size); > + memcpy(dest->ptr, src->ptr, dest->size); > + for (i = 0; i < dest->size; i++) > + if (isspace(dest->ptr[i])) > + dest->ptr[i] = '\n'; > +} > + > /* this executes the word diff on the accumulated buffers */ > static void diff_words_show(struct diff_words_data *diff_words) > { > @@ -444,20 +455,9 @@ static void diff_words_show(struct diff_words_data *diff_words) > int i; diff.c:482: warning: unused variable 'i' -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html