On 2015-01-15 1:49 PM, Daniel Holbert wrote:
On 01/15/2015 09:46 AM, Chris Peterson wrote:
Another small benefit of optional non-unified builds is that clang does
a better job of reporting -Wunused-variable warnings with smaller
translation units. I assume that the number of identifiers in the
unified files exceed some clang analysis limit.
(I don't think it's a number-of-identifiers thing.
In the cases I've seen, e.g. bug 1008083, clang doesn't report some
variables as "unused" in #included files because it assumes the
#included thing is a header, and the variable might be used in some
*other* translation unit that includes this header.)
Yeah, that is definitely one of the implications of unified builds.
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform