This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]