Announcement

Collapse
No announcement yet.

GCC 6 Will Warn You About Misleading Code Indentations

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • GCC 6 Will Warn You About Misleading Code Indentations

    Phoronix: GCC 6 Will Warn You About Misleading Code Indentations

    As reminded this weekend by Red Hat developer Mark Wielaard, GCC 6 will warn you about misleading code indentations...

    Phoronix, Linux Hardware Reviews, Linux hardware benchmarks, Linux server benchmarks, Linux benchmarking, Desktop Linux, Linux performance, Open Source graphics, Linux How To, Ubuntu benchmarks, Ubuntu hardware, Phoronix Test Suite

  • #2
    I bet openSUSE Tumbleweed will get this earlier than Fedora

    Comment


    • #3
      and both Debian testing and unstable even before that ;-)

      Comment


      • #4
        Originally posted by Del_ View Post
        and both Debian testing and unstable even before that ;-)
        I guess I should have phrased it better, was implying about released/stable distribution releases
        Michael Larabel
        https://www.michaellarabel.com/

        Comment


        • #5
          Originally posted by Michael View Post

          I guess I should have phrased it better, was implying about released/stable distribution releases
          Debian unstable is basically a stable rolling release. The prerelease stuff is in experimental. You can already get gcc-6 there.

          Comment


          • #6
            Originally posted by carewolf View Post
            Debian unstable is basically a stable rolling release. The prerelease stuff is in experimental. You can already get gcc-6 there.
            Michael said "released/stable", AKA not rolling release.

            Comment


            • #7
              Debian unstable is basically a stable rolling release
              I found that unstable is very buggy. Personally I prefer Arch that gives me less problems.

              Comment


              • #8
                Originally posted by carewolf View Post

                Debian unstable is basically a stable rolling release. The prerelease stuff is in experimental. You can already get gcc-6 there.
                I use Debian daily and while TESTING can be considered a mostly stable rolling release I would not say the same about unstable, neither would Debian that's why they name it unstable. Testing on the other hand is very stable and have not given me much trouble at all as long as you pay some attention to what happens to your packages during updates!

                http://www.dirtcellar.net

                Comment


                • #9
                  Heh, I was wondering about whether it would be a good idea to have such a warning after seeing http://lists.freedesktop.org/archive...ne/086773.html. I guess it is.

                  Comment


                  • #10
                    Originally posted by haagch View Post
                    Heh, I was wondering about whether it would be a good idea to have such a warning after seeing http://lists.freedesktop.org/archive...ne/086773.html. I guess it is.
                    You can always improve warnings. And in this case a always return false is fixed by adding the missing braces. I on the other hand prefer braces on separate lines and that also introduce problems.

                    For example a typo like if(whatever); will cause the block to never get executed while if(whatever){; does not matter at all. Not sure if GCC have warning for this , but I sure would like to have that in too

                    http://www.dirtcellar.net

                    Comment

                    Working...
                    X