Compiler Warnings...
-
How seriously do you handle them?
"The only place where Success comes before Work is in the dictionary." Vidal Sassoon, 1928 - 2012
-
warnings from the compiler only proves to me the compiler doesn't understand my code.
Message Signature (Click to edit ->)
-
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:
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.
-
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!
A classic ! :-\
-
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.
Would you still prefer Delphi over .Net ?
-
How seriously do you handle them?
"The only place where Success comes before Work is in the dictionary." Vidal Sassoon, 1928 - 2012
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
-
How seriously do you handle them?
"The only place where Success comes before Work is in the dictionary." Vidal Sassoon, 1928 - 2012
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
-
How seriously do you handle them?
"The only place where Success comes before Work is in the dictionary." Vidal Sassoon, 1928 - 2012
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
-
How seriously do you handle them?
"The only place where Success comes before Work is in the dictionary." Vidal Sassoon, 1928 - 2012
While prototyping, who cares. When making the code production-ready, same as errors.
-
How seriously do you handle them?
"The only place where Success comes before Work is in the dictionary." Vidal Sassoon, 1928 - 2012
We ignore all warnings and catch bugs in user alpha testing. Of course.
-
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.
-
How seriously do you handle them?
"The only place where Success comes before Work is in the dictionary." Vidal Sassoon, 1928 - 2012
I don't take threats!
"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
-
If the compiler doesn't understand your code, what chance do your co-workers stand...? :-)
Have you ever heard of "Job Security" ?
"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
-
How seriously do you handle them?
"The only place where Success comes before Work is in the dictionary." Vidal Sassoon, 1928 - 2012
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.
-
How seriously do you handle them?
"The only place where Success comes before Work is in the dictionary." Vidal Sassoon, 1928 - 2012
-
We ignore all warnings and catch bugs in user alpha testing. Of course.
-
How seriously do you handle them?
"The only place where Success comes before Work is in the dictionary." Vidal Sassoon, 1928 - 2012
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
-
How seriously do you handle them?
"The only place where Success comes before Work is in the dictionary." Vidal Sassoon, 1928 - 2012
To the knife.
Software Zen:
delete this;
-
How seriously do you handle them?
"The only place where Success comes before Work is in the dictionary." Vidal Sassoon, 1928 - 2012
Compiler warnings should never be ignored. If you ignore them, they build up and eventually obscure things like: "Unable to resolve reference to x as it was built with a higher framework version". This is just a warning, but try and publish such an application and you will quickly find it does not work in production. The number of times I am asked to help someone solve an issue which they could have solved themselves if they just read the warnings...
-
Have you ever heard of "Job Security" ?
"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