Date: prev next · Thread: first prev next last
2011 Archives by date, by thread · List index


Hi *,

On Sat, Jan 15, 2011 at 12:43 AM, Lionel Elie Mamane <lionel@mamane.lu> wrote:
[...]

configure discrepancy left aside, but...

The problem is that graphite does not build with -Werror in debug
mode; one of the least fixable reasons is that it uses asserts left
and right, asserts are *designed* to always be true,

No. it is /assumed/ that they will evaluate to true,

sometimes gcc
detects that they are (e.g. when comparing an unsigned integer type
with 0), this raises a warning that gets treated as error because of
-Werror.

Sorry - but when checking whether an unsigned type is larger or equals
zero, then this is a bug in the assertion and the compiler rightfully
complains about stupid code that could be written as "true" instead.

But maybe I misunderstand... Do you have an example?

And yes, the attached patch is of course good.

ciao
Christian

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.