[Bug other/81334] -Wmisleading-indentation prints notes about being disabled even when already intentionally ignored

maxim.prohorenko at gmail dot com gcc-bugzilla@gcc.gnu.org
Fri Aug 13 10:49:28 GMT 2021


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81334

Максим Прохоренко <maxim.prohorenko at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |maxim.prohorenko at gmail dot com

--- Comment #5 from Максим Прохоренко <maxim.prohorenko at gmail dot com> ---
Support disabling forwarding via #paragma please.
There is a lot of noise in the log if you include huge generated files.
An example can be taken in the github project F2I-Consulting / fesapi.

GCC_DIAG_IGNORED ("-Wmisleading-indentation")
CLANG_DIAG_IGNORED ("-Wmisleading-indentation")

#ifdef NEW_FESAPI
#include "fesapi/eml2/AbstractHdfProxy.h"
#else
#include "fesapi/common/AbstractHdfProxy.h"
#endif

#include "fesapi/nsDefinitions.h"

CLANG_DIAG_RESTORE
GCC_DIAG_RESTORE


More information about the Gcc-bugs mailing list