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

uncaught warning in ARM compile

I use python language to call ARM compile as below.

status = os.system(buildCommandLine)
if status:
print 'error!!'
But, above status did not catch an warning #550-D. e.g.) Warning: #550-D: variable "abcd" was set but never used

Can I get how to catch any warning error during compile error?

Parents
  • Hello,

    You're more likely to get an answer for this in one of the other Communities such as Software Tools.

    With that said, am I right in thinking you're using ARM Compiler / Keil?

    If so and your test condition is based on the compiler returning a non-zero value being equivalent to an error, you could pass the flag --diag_error=warning flag which will treat all warnings as errors; this will abandon the compilation and cause a non-zero value to be returned.

    Hope that helps,
    Ash.

Reply
  • Hello,

    You're more likely to get an answer for this in one of the other Communities such as Software Tools.

    With that said, am I right in thinking you're using ARM Compiler / Keil?

    If so and your test condition is based on the compiler returning a non-zero value being equivalent to an error, you could pass the flag --diag_error=warning flag which will treat all warnings as errors; this will abandon the compilation and cause a non-zero value to be returned.

    Hope that helps,
    Ash.

Children
No data