Words filter compiler error with GCC 4.7
Yue Liu
yue.liu at mail.com
Sat Mar 24 02:30:11 GMT 2012
looks like it's okay to rename r with other name.
2012/3/24 Christoph Feck <christoph at maxiom.de>:
> Hi,
>
> The calligra master builds fails with GCC 4.7 due to an error in the
> "hancomwords" import filter.
>
> The loop in filters/words/hancomword/pole.cpp:869 reads:
>
> for (unsigned r = 0; r < header->num_mbat; r++) {
> unsigned long r = loadBigBlock(mblock, buffer2, bbat-
>>blockSize);
> if (r != bbat->blockSize) {
> delete[] buffer2;
> return;
> }
> for (unsigned s = 0; s < bbat->blockSize - 4; s += 4) {
> if (k >= header->num_bat) break;
> else blocks[k++] = readU32(buffer2 + s);
> }
> mblock = readU32(buffer2 + bbat->blockSize - 4);
> }
>
> The error is that the variable "r" is used as the loop counter, as
> well recomputed inside the loop. This clearly is a bug, but I do not
> know the code to fix it.
>
> Christoph Feck (kdepepo)
> KDE Quality Team
> _______________________________________________
> calligra-devel mailing list
> calligra-devel at kde.org
> https://mail.kde.org/mailman/listinfo/calligra-devel
--
Best Regards,
Yue Liu
More information about the calligra-devel
mailing list