Click here to Skip to main content
15,035,866 members

Survey Results

How do you deal with compiler warnings?

Survey period: 17 Jun 2019 to 24 Jun 2019

If the compiler knows how to fix my syntax error why doesn't it simply fix it itself?

Use standard compiler settings and set the warning level to the highest level and fix all warnings and errors26229.27
Customise analysers to suit my team’s requirements and fix all warnings and errors18020.11
Fix all errors but generally ignore warnings31234.86
Turn off all errors and warnings that I can182.01
Depends on the codebase and my level of enthusiasm12013.41
I don't work with a compiler that generates warnings or errors182.01

GeneralTreat warnings as errors Pin
Dominic Burford21-Jun-19 1:28
professionalDominic Burford21-Jun-19 1:28 
GeneralRe: Treat warnings as errors Pin
Kevin McFarlane21-Jun-19 1:40
MemberKevin McFarlane21-Jun-19 1:40 
Answer#pragma warning xxxx disable Pin
Stylianos Polychroniadis20-Jun-19 5:16
MemberStylianos Polychroniadis20-Jun-19 5:16 
Generalwarnings Pin
Member 1317784718-Jun-19 5:00
MemberMember 1317784718-Jun-19 5:00 
GeneralRe: warnings Pin
den2k8819-Jun-19 2:31
professionalden2k8819-Jun-19 2:31 
Generalpoll missing an option Pin
BryanFazekas18-Jun-19 0:54
MemberBryanFazekas18-Jun-19 0:54 
GeneralReminds me of a Song Pin
Afzaal Ahmad Zeeshan17-Jun-19 23:02
mveAfzaal Ahmad Zeeshan17-Jun-19 23:02 
GeneralRe: Reminds me of a Song Pin
OriginalGriff18-Jun-19 1:14
mveOriginalGriff18-Jun-19 1:14 
GeneralSet "treat warnings as errors" in my default project template. Pin
OriginalGriff17-Jun-19 21:59
mveOriginalGriff17-Jun-19 21:59 
GeneralThe one who voted "Turn off all errors and warnings that I can" Pin
den2k8817-Jun-19 4:16
professionalden2k8817-Jun-19 4:16 
GeneralRe: The one who voted "Turn off all errors and warnings that I can" Pin
Pete Lomax Member 1066450517-Jun-19 5:09
professionalPete Lomax Member 1066450517-Jun-19 5:09 
GeneralRe: The one who voted "Turn off all errors and warnings that I can" Pin
CHill6019-Jun-19 4:42
mveCHill6019-Jun-19 4:42 
GeneralAnother "None" Pin
W Balboos, GHB17-Jun-19 1:15
mveW Balboos, GHB17-Jun-19 1:15 
GeneralRe: Another "None" Pin
FiresChild18-Jun-19 5:47
MemberFiresChild18-Jun-19 5:47 
What (s)he said. Very often the answers are difficult to choose from because some "common sense" answers are not there(not that I'm knocking anyones common sense, it's just that this weeks is a case in point, it should have had a "fix errors and as many warnings as possible" answer).Unsure | :~
GeneralUnfortunately, the niche product I use is a little "special" Pin
u-li16-Jun-19 23:53
Memberu-li16-Jun-19 23:53 
GeneralRe: Unfortunately, the niche product I use is a little "special" Pin
Sander Rossel17-Jun-19 0:43
professionalSander Rossel17-Jun-19 0:43 
GeneralRe: Unfortunately, the niche product I use is a little "special" Pin
den2k8817-Jun-19 4:15
professionalden2k8817-Jun-19 4:15 
GeneralNormally: Fix all errors but and try to remove warnings.. Pin
Simon_Whale16-Jun-19 23:25
professionalSimon_Whale16-Jun-19 23:25 
GeneralIf I wrote them... Pin
Sander Rossel16-Jun-19 23:00
professionalSander Rossel16-Jun-19 23:00 
GeneralFix warnings Pin
den2k8816-Jun-19 21:26
professionalden2k8816-Jun-19 21:26 
GeneralRe: Fix warnings Pin
Mike Barthold16-Jun-19 23:06
professionalMike Barthold16-Jun-19 23:06 
GeneralRe: Fix warnings Pin
CHill6019-Jun-19 3:07
mveCHill6019-Jun-19 3:07 
GeneralRe: Fix warnings Pin
Elrond20-Jun-19 0:50
MemberElrond20-Jun-19 0:50 
GeneralI’m shocked Pin
#realJSOP16-Jun-19 20:15
mva#realJSOP16-Jun-19 20:15 
GeneralRe: I’m shocked Pin
M.Vo.16-Jun-19 20:35
MemberM.Vo.16-Jun-19 20:35 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.