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


On 02/10/2018 04:05, slacka wrote:
There are many knobs I could tweak. For example, since my last post, I
discovered I could remove the "-DNDEBUG" to scan the debug code path. I
could also remove the "-j 4" option to allow Cppcheck to scan for unused
functions.  I don't know what is most useful, and what valid issues were not
being reported.  This is why I have asked the ML for feedback.

The knobs you can tweak are the configure options passed to LO's autogen.sh. For example, -DNDEBUG is controlled by --en-/disable-assert-always-abort. There is not per-se an "ideal" set of configure options for static analysis purposes. One reasonable approach is of course to maximize code coverage, both at the large scale (enabling as many optional modules as possible, from e.g. --enable-kde5 to --enable-ext-nlpsolver) and at small (e.g., enabling asserts with --enable-assert-always-abort or debug-only code blocks with --enable-debug or even --enable-dbgutil, both of which imply --enable-assert-always-abort).

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.