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?

More questions in this forum