GCC 6 Will Warn You About Misleading Code Indentations

Written by Michael Larabel in GNU on 10 January 2016 at 08:04 AM EST. 19 Comments
GNU
As reminded this weekend by Red Hat developer Mark Wielaard, GCC 6 will warn you about misleading code indentations.

Among the numerous GCC 6 features to have been built up over the past year was the new -Wmisleading-indentation warning. This warning will notify you when it appears there is code that wasn't indented properly and so may not match the intended logic of the developer.

This new warning isn't enabled by default. If you wish to learn more about -Wmisleading-indentation option, see this documentation commit.

This option has been supported in the GCC SVN/Git code for some months already while GCC 6 is set to be officially released with this and many other features around March. One of the first major Linux distributions expected to ship with GCC 6 is Fedora 24.
Related News
About The Author
Michael Larabel

Michael Larabel is the principal author of Phoronix.com and founded the site in 2004 with a focus on enriching the Linux hardware experience. Michael has written more than 20,000 articles covering the state of Linux hardware support, Linux performance, graphics drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated benchmarking software. He can be followed via Twitter, LinkedIn, or contacted via MichaelLarabel.com.

Popular News This Week