When I rebuild HEAD cleanly as above, I get only four warnings, all of
which were introduced recently.
A more sophisticated implementation might parse make's stderr and use
some smarter logic to decide what errors to ignore; the above only
checks for "No warnings other than 'Unreachable code' and 'Format
string' anywhere in the code".