It can't. The developers state explicitly that it is based on a set of heuristics tuned to catch _most_ misleading indentation without too much noise. As with other compiler warnings, there will be false positives and false negatives. Let _current_ GCC loose on most any code with `-Wall` and weep.