- Joined
- Jul 6, 2005
- Messages
- 35,983
- Likes received
- 2,999
- Thanks received
- 1,077
# The standard gcc compiler version 4″ generated a redacted number of warnings (probably larger than 100) about the code, in 11 different warning categories. (p. 25)
# “Coverity version 4.2″ generated a redacted number of warnings (probably larger than 154) about the code, in 10 different warning categories. (p. 27)
# “Codesonar version 3.6p1″ generated a redacted number of warnings (probably larger than 136) about the code, in 10 different warning categories.
# “Uno version 2.12″ generated a redacted number of warnings (probably larger than 72) about the code, in 9 different warning categories.
# The code contained at least 347 deviations from a subset of 14 of the MISRA-C rules.
# The code contained at least 243 violations of a subset of 9 of the 10 “Power of 10–Rules for Developing Safety Critical Code,” which was published in IEEE Computer in 2006 by NESC team member Gerard Holzmann.
Indeed.
As I tell my illustrious esteemed customers, you fix errors & then you fix the warnings.


Remember the good old days of cables? If the cable broke you stopped accelerating.It gets better:
What NHTSA/NASA Didn’t Consider re: Toyota’s Firmware « Barr Code
Recursion in a real time embedded system?
Are they mad?![]()
Remember the good old days of cables? If the cable broke you stopped accelerating.

Also, some warnings are to check you know what's going on... they are called warnings for a reason.For a safety critical app it should be an unbreakable rule that it compiles at the maximum warning level with zero warnings.
The slight snag is that to some extent lazy or incompetent programmers can "mask" potential problems just to achieve a clean compile.
Remember the good old days of cables? If the cable broke you stopped accelerating.
Something like that happened to one of my friends in a moggy minor. He used a piece of string to operate the throttle to get home, so I'm not sure what broke or came loose. Sounds like the cable.I had the carburettor return spring break on me once. The engine soared to full revs.
Unintended acceleration on a Morris Minor!
I switched off and coasted to a halt.
No steering lock in those days, fortunately.
I managed to jam the throttle half way open and got home that way.
Modern technology.
Pah!
I lubricate my trunnions vigorously.String didn't work too well if you forgot to grease your trunnions regularly.