Static Analyzer is much more efficient when built in debug mode (-UNDEBUG) so we advice users to enable it manually. This may be inconvenient in case of large complex projects (think about Linux distros e.g. Android or Tizen). This patch adds a flag to scan-build which inserts -UNDEBUG automatically.
I've checked this on Android where it removed a bunch of false positives and also uncovered several errors which were present only in assertion code (e.g. use-after-free, etc.).