Commit Graph

3 Commits (17b35f6ece14a22abcf7aee20d18dcea7314a0e9)

Author SHA1 Message Date
René Kijewski d0294dd70e make: enable `assert()` in `make scan-build`
Compare scan-build's [documentation][1]:

> ALWAYS analyze a project in its "debug" configuration
>
> Most projects can be built in a "debug" mode that enables assertions.
> Assertions are picked up by the static analyzer to prune infeasible
> paths, which in some cases can greatly reduce the number of false
> positives (bogus error reports) emitted by the tool.

Closes #3960.

  1: http://clang-analyzer.llvm.org/scan-build.html#recommended_debug
8 years ago
Joakim Gebart e95a4c50a9 make: Build with -Werror by default
Can be overridden from the environment by setting WERROR=0

also remove reversed logic for Werror in Makefile.buildtest
(a typo caused Werror to be always enabled for all builds)
8 years ago
Joakim Gebart 13753cca14 Makefile.scan-build: Add make goal for running Clang static code analysis 8 years ago