Home
last modified time | relevance | path

Searched hist:f1d7d1c02075b181fb9e6b602d2923ea341d9bba (Results 1 – 1 of 1) sorted by relevance

/trunk/main/graphite/
H A Dgraphite-2.3.1.patchf1d7d1c02075b181fb9e6b602d2923ea341d9bba Fri Aug 05 05:49:46 UTC 2016 truckman <truckman@13f79535-47bb-0310-9956-ffa450edef68> Fix --enable-debug build with clang as the compiler.

Clang warns about this expression in graphite:
if (!m_srAttachTo == 0)
Operator precedence rules require this to be evaluated as:
if ((!m_srAttachTo) == 0)
but clang worries that the author might have intended this to mean:
if (!(m_srAttachTo == 0))
Fortunately these two are equivalent, as is:
if (m_srAttachTo != 0)
and the latter is much easier for humans to understand.

For some reason, --enable-debug adds -Werror to the graphite CFLAGS even
though its makefile.mk specifies:
EXTERNAL_WARNINGS_NOT_ERRORS := TRUE



git-svn-id: https://svn.apache.org/repos/asf/openoffice/trunk@1755245 13f79535-47bb-0310-9956-ffa450edef68