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?
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.
-diag_error=warning
Hope that helps,Ash.