[Bug c/66454] Common -Wmisleading-indentation false-positive triggered in the Linux kernel

patrick at parcs dot ath.cx gcc-bugzilla@gcc.gnu.org
Mon Jun 8 03:13:00 GMT 2015


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

--- Comment #2 from patrick at parcs dot ath.cx ---
Created attachment 35712
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=35712&action=edit
rough patch

Here is a rough patch of the aforementioned change -- to look at the column of
the first non-whitespace character on the line of the guard token, instead of
looking at the column of the guard token itself.  The patch eliminates all of
the -Wmisleading-indentation false positives from the Linux kernel build, and
all of the false positives from the sqlite build.



More information about the Gcc-bugs mailing list