This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/66454] Common -Wmisleading-indentation false-positive triggered in the Linux kernel
- From: "patrick at parcs dot ath.cx" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 08 Jun 2015 03:12:55 +0000
- Subject: [Bug c/66454] Common -Wmisleading-indentation false-positive triggered in the Linux kernel
- Auto-submitted: auto-generated
- References: <bug-66454-4 at http dot gcc dot gnu dot org/bugzilla/>
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.