This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

What is best practice for ARM compiler 6.7

I've been playing around with the ARM C compiler 6.6 and 6.7 for cortex m3 and I was wondering what is the best practice for the enabling of compiler warnings? What level of warnings should be a minimum? Would flagging missing noreturn and unused parameters actually help produce more efficient code? It was quite a bit of a change to go from 6.6 that had a lot of warnings on by default to 6.7 that has turned a lot of the warnings off. I prefer having the warnings off by default but it did make me wonder how many of them I should turn back on.

Parents
  • Any place I have worked the rule has been "no errors no warnings" and were I to make the rules the rule would be the same.

    A warning means "something is not right but MAY work". Would you accept "may work"?, remember "successful testing does not prove the absence of errors it only proves the absence of known errors.

Reply
  • Any place I have worked the rule has been "no errors no warnings" and were I to make the rules the rule would be the same.

    A warning means "something is not right but MAY work". Would you accept "may work"?, remember "successful testing does not prove the absence of errors it only proves the absence of known errors.

Children