Hi,<br><br>I recommend to use filters/libmso/pole.cpp in the starwriter and the hancomword filter. I can take care of the starwriter filter.<br><br><br><div class="gmail_quote">On Sat, Mar 24, 2012 at 3:30 AM, Yue Liu <span dir="ltr"><<a href="mailto:yue.liu@mail.com">yue.liu@mail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">looks like it's okay to rename r with other name.<br>
<br>
2012/3/24 Christoph Feck <<a href="mailto:christoph@maxiom.de">christoph@maxiom.de</a>>:<br>
<div class="HOEnZb"><div class="h5">> Hi,<br>
><br>
> The calligra master builds fails with GCC 4.7 due to an error in the<br>
> "hancomwords" import filter.<br>
><br>
> The loop in filters/words/hancomword/pole.cpp:869 reads:<br>
><br>
> for (unsigned r = 0; r < header->num_mbat; r++) {<br>
> unsigned long r = loadBigBlock(mblock, buffer2, bbat-<br>
>>blockSize);<br>
> if (r != bbat->blockSize) {<br>
> delete[] buffer2;<br>
> return;<br>
> }<br>
> for (unsigned s = 0; s < bbat->blockSize - 4; s += 4) {<br>
> if (k >= header->num_bat) break;<br>
> else blocks[k++] = readU32(buffer2 + s);<br>
> }<br>
> mblock = readU32(buffer2 + bbat->blockSize - 4);<br>
> }<br>
><br>
> The error is that the variable "r" is used as the loop counter, as<br>
> well recomputed inside the loop. This clearly is a bug, but I do not<br>
> know the code to fix it.<br>
><br>
> Christoph Feck (kdepepo)<br>
> KDE Quality Team<br>
> _______________________________________________<br>
> calligra-devel mailing list<br>
> <a href="mailto:calligra-devel@kde.org">calligra-devel@kde.org</a><br>
> <a href="https://mail.kde.org/mailman/listinfo/calligra-devel" target="_blank">https://mail.kde.org/mailman/listinfo/calligra-devel</a><br>
<br>
<br>
<br>
</div></div><span class="HOEnZb"><font color="#888888">--<br>
Best Regards,<br>
Yue Liu<br>
</font></span><div class="HOEnZb"><div class="h5">_______________________________________________<br>
calligra-devel mailing list<br>
<a href="mailto:calligra-devel@kde.org">calligra-devel@kde.org</a><br>
<a href="https://mail.kde.org/mailman/listinfo/calligra-devel" target="_blank">https://mail.kde.org/mailman/listinfo/calligra-devel</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>
Matus Uzak<br>
Software Designer<br>
Ixonos Slovakia s.r.o.<br>
Sturova 27, 040 01 Kosice, Slovakia<br>
mobile 0421 918 718 958<br>
email: <a href="mailto:matus.uzak@ixonos.com" target="_blank">matus.uzak@ixonos.com</a><br>
<a href="http://www.ixonos.com/" target="_blank">http://www.ixonos.com</a><br>