GCC 误导性缩进警告从此时起被禁用?

GCC misleading indentation warning is disabled from this point onwards?

编译相当大的 C++ project 时,我收到此消息:

note: -Wmisleading-indentation is disabled from this point onwards, since column-tracking was disabled due to the size of the code/headers

所以,有几个问题:

How bad is it that this warning is disabled?

它的影响为零,除了显而易见的是您不会收到从警告出现的地方误导性缩进的代码的警告。

What kind of things cause this to be disabled? Just the code being too large?

This GCC bug

Is there a way to optimize/fix the code to prevent it from being disabled?

当然可以,但它需要的工作被浪费了。等待 gcc 中的错误修复。

Is there a way to re-enable it despite the size of the code/headers?

如果可能的话,它很可能 re-enable 本身(当开始使用新的翻译单元时)。

Is there a way to silence the note about the warning being disabled?

我暂时添加 -Wno-misleading-indentation。如果安装了不同的编译器,您也可以使用。

例如,clang 8.0.0 没有发出警告:

scons -j12 platform=x11 use_llvm=yes target=release_debug