Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. Compiler Warnings...

Compiler Warnings...

Scheduled Pinned Locked Moved The Lounge
question
50 Posts 32 Posters 4 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Kornfeld Eliyahu PeterK Kornfeld Eliyahu Peter

    How seriously do you handle them?

    "The only place where Success comes before Work is in the dictionary." Vidal Sassoon, 1928 - 2012

    M Offline
    M Offline
    Marc Clifton
    wrote on last edited by
    #17

    Gollum - "We hates it!"[^]

    Latest Article - A 4-Stack rPI Cluster with WiFi-Ethernet Bridging Learning to code with python is like learning to swim with those little arm floaties. It gives you undeserved confidence and will eventually drown you. - DangerBunny Artificial intelligence is the only remedy for natural stupidity. - CDP1802

    1 Reply Last reply
    0
    • Kornfeld Eliyahu PeterK Kornfeld Eliyahu Peter

      How seriously do you handle them?

      "The only place where Success comes before Work is in the dictionary." Vidal Sassoon, 1928 - 2012

      J Offline
      J Offline
      Joe Woodbury
      wrote on last edited by
      #18

      I'm very OCD about warnings and even add checking for a dozen more obscure ones. I then pass my code through various analyzers. Many times, seemingly trivial warnings exposed more serious logical errors.

      1 Reply Last reply
      0
      • Kornfeld Eliyahu PeterK Kornfeld Eliyahu Peter

        How seriously do you handle them?

        "The only place where Success comes before Work is in the dictionary." Vidal Sassoon, 1928 - 2012

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #19

        warnings from the compiler only proves to me the compiler doesn't understand my code.

        Message Signature (Click to edit ->)

        D 1 Reply Last reply
        0
        • L Lost User

          warnings from the compiler only proves to me the compiler doesn't understand my code.

          Message Signature (Click to edit ->)

          D Offline
          D Offline
          dandy72
          wrote on last edited by
          #20

          If the compiler doesn't understand your code, what chance do your co-workers stand...? :-)

          W 1 Reply Last reply
          0
          • K k5054

            In my own code, I like to clean them all up. When compiling packaged software, say the latest version of gcc, I just do the configure/make/make install and ignore the warnings. ISTR a story about the linux kernel, long ago, where some helpful individual went through the code and cleaned up all the warnings. Which was great, until you tried to compile it for something other than an X86 - in which case either the build failed or the kernel broke. :doh:

            C Offline
            C Offline
            CPallini
            wrote on last edited by
            #21

            Quote:

            ISTR a story about the linux kernel, long ago, where some helpful individual went through the code and cleaned up all the warnings. Which was great, until you tried to compile it for something other than an X86 - in which case either the build failed or the kernel broke

            It was already broken.

            1 Reply Last reply
            0
            • OriginalGriffO OriginalGriff

              2 pints of lager, and a packet of crisps, please.[^]

              Sent from my Amstrad PC 1640 Never throw anything away, Griff Bad command or file name. Bad, bad command! Sit! Stay! Staaaay... AntiTwitter: @DalekDave is now a follower!

              R Offline
              R Offline
              RickZeeland
              wrote on last edited by
              #22

              A classic ! :-\

              1 Reply Last reply
              0
              • M MarkTJohnson

                I used to go through the code and clean those out but then I decided life was too short. When I did Delphi I would sometimes get a variable not initialized warning but when I initialized it I would get a value assigned but never used warning if the variable was in a try..except block.

                R Offline
                R Offline
                RickZeeland
                wrote on last edited by
                #23

                Would you still prefer Delphi over .Net ?

                B M 2 Replies Last reply
                0
                • Kornfeld Eliyahu PeterK Kornfeld Eliyahu Peter

                  How seriously do you handle them?

                  "The only place where Success comes before Work is in the dictionary." Vidal Sassoon, 1928 - 2012

                  R Offline
                  R Offline
                  Ravi Bhavnani
                  wrote on last edited by
                  #24

                  Compiler warnings fail our build.  If we really need to ignore a specific warning, we disable it. /ravi

                  My new year resolution: 2048 x 1536 Home | Articles | My .NET bits | Freeware ravib(at)ravib(dot)com

                  1 Reply Last reply
                  0
                  • Kornfeld Eliyahu PeterK Kornfeld Eliyahu Peter

                    How seriously do you handle them?

                    "The only place where Success comes before Work is in the dictionary." Vidal Sassoon, 1928 - 2012

                    T Offline
                    T Offline
                    TheGreatAndPowerfulOz
                    wrote on last edited by
                    #25

                    set warnings as errors. :thumbsup::thumbsup:

                    #SupportHeForShe Government can give you nothing but what it takes from somebody else. A government big enough to give you everything you want is big enough to take everything you've got, including your freedom.-Ezra Taft Benson You must accept 1 of 2 basic premises: Either we are alone in the universe or we are not alone. Either way, the implications are staggering!-Wernher von Braun

                    1 Reply Last reply
                    0
                    • Kornfeld Eliyahu PeterK Kornfeld Eliyahu Peter

                      How seriously do you handle them?

                      "The only place where Success comes before Work is in the dictionary." Vidal Sassoon, 1928 - 2012

                      D Offline
                      D Offline
                      DJ van Wyk
                      wrote on last edited by
                      #26

                      Warnings have the tendency to hide errors. John Carmack wrote a pretty good article a few years ago about the best way to think of and treat warnings.

                      My plan is to live forever ... so far so good

                      1 Reply Last reply
                      0
                      • Kornfeld Eliyahu PeterK Kornfeld Eliyahu Peter

                        How seriously do you handle them?

                        "The only place where Success comes before Work is in the dictionary." Vidal Sassoon, 1928 - 2012

                        M Offline
                        M Offline
                        Member 9167057
                        wrote on last edited by
                        #27

                        While prototyping, who cares. When making the code production-ready, same as errors.

                        1 Reply Last reply
                        0
                        • Kornfeld Eliyahu PeterK Kornfeld Eliyahu Peter

                          How seriously do you handle them?

                          "The only place where Success comes before Work is in the dictionary." Vidal Sassoon, 1928 - 2012

                          M Offline
                          M Offline
                          markrlondon
                          wrote on last edited by
                          #28

                          We ignore all warnings and catch bugs in user alpha testing. Of course.

                          K 1 Reply Last reply
                          0
                          • C CodeWraith

                            Compiler warnings? 0.0 max. Warnings from hysterical Code Nazi tools? Who cares?

                            I have lived with several Zen masters - all of them were cats. His last invention was an evil Lasagna. It didn't kill anyone, and it actually tasted pretty good.

                            D Offline
                            D Offline
                            den2k88
                            wrote on last edited by
                            #29

                            Unless you're bound to MISRA or the equivalent Aerospace normative.

                            GCS d--(d+) s-/++ a C++++ U+++ P- L+@ E-- W++ N+ o+ K- w+++ O? M-- V? PS+ PE- Y+ PGP t+ 5? X R+++ tv-- b+(+++) DI+++ D++ G e++ h--- r+++ y+++*      Weapons extension: ma- k++ F+2 X

                            1 Reply Last reply
                            0
                            • Kornfeld Eliyahu PeterK Kornfeld Eliyahu Peter

                              How seriously do you handle them?

                              "The only place where Success comes before Work is in the dictionary." Vidal Sassoon, 1928 - 2012

                              W Offline
                              W Offline
                              W Balboos GHB
                              wrote on last edited by
                              #30

                              I don't take threats!

                              Ravings en masse^

                              "The difference between genius and stupidity is that genius has its limits." - Albert Einstein

                              "If you are searching for perfection in others, then you seek disappointment. If you are seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010

                              1 Reply Last reply
                              0
                              • D dandy72

                                If the compiler doesn't understand your code, what chance do your co-workers stand...? :-)

                                W Offline
                                W Offline
                                W Balboos GHB
                                wrote on last edited by
                                #31

                                Have you ever heard of "Job Security" ?

                                Ravings en masse^

                                "The difference between genius and stupidity is that genius has its limits." - Albert Einstein

                                "If you are searching for perfection in others, then you seek disappointment. If you are seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010

                                D B 2 Replies Last reply
                                0
                                • Kornfeld Eliyahu PeterK Kornfeld Eliyahu Peter

                                  How seriously do you handle them?

                                  "The only place where Success comes before Work is in the dictionary." Vidal Sassoon, 1928 - 2012

                                  M Offline
                                  M Offline
                                  Marco Bertschi
                                  wrote on last edited by
                                  #32

                                  We manage them. Warnings which disturb us (coding-style variances those warn us of, mostly) get disabled by the ruleset, merging anything is only possible with zero warnings. Too often have warnings led to bugs, and managing them to get only those which add value for our team has suited us well.

                                  I only have a signature in order to let @DalekDave follow my posts.

                                  1 Reply Last reply
                                  0
                                  • Kornfeld Eliyahu PeterK Kornfeld Eliyahu Peter

                                    How seriously do you handle them?

                                    "The only place where Success comes before Work is in the dictionary." Vidal Sassoon, 1928 - 2012

                                    O Offline
                                    O Offline
                                    obermd
                                    wrote on last edited by
                                    #33

                                    I consider them Errors and fail the compile.

                                    1 Reply Last reply
                                    0
                                    • M markrlondon

                                      We ignore all warnings and catch bugs in user alpha testing. Of course.

                                      K Offline
                                      K Offline
                                      kmoorevs
                                      wrote on last edited by
                                      #34

                                      markrlondon wrote:

                                      catch bugs in user alpha testing.

                                      :thumbsup: Finally, a real-world answer! If it weren't for users, I'd have no bugs at all. :laugh:

                                      "Go forth into the source" - Neal Morse

                                      1 Reply Last reply
                                      0
                                      • Kornfeld Eliyahu PeterK Kornfeld Eliyahu Peter

                                        How seriously do you handle them?

                                        "The only place where Success comes before Work is in the dictionary." Vidal Sassoon, 1928 - 2012

                                        D Offline
                                        D Offline
                                        Dr Walt Fair PE
                                        wrote on last edited by
                                        #35

                                        I prefer to call them suggestions. and if I wanted suggestions for my code, I'd just out-source it.

                                        CQ de W5ALT

                                        Walt Fair, Jr., P. E. Comport Computing Specializing in Technical Engineering Software

                                        1 Reply Last reply
                                        0
                                        • Kornfeld Eliyahu PeterK Kornfeld Eliyahu Peter

                                          How seriously do you handle them?

                                          "The only place where Success comes before Work is in the dictionary." Vidal Sassoon, 1928 - 2012

                                          G Offline
                                          G Offline
                                          Gary Wheeler
                                          wrote on last edited by
                                          #36

                                          To the knife.

                                          Software Zen: delete this;

                                          1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • World
                                          • Users
                                          • Groups