If ARM compiler has similar option for -Werror

1.3k views Asked by At

I know gcc has an option -Werror, which can stop compile if there is an warning, if armcc has similar option, because I want to have a good code quality control in compile level

additional info:

I use armcc 2.2 build 616, I consult ARM, it said --diag_error=warning was add ONLY for armcc 4.0 or later

2

There are 2 answers

0
How Chen On BEST ANSWER

I got answer from ARM, use following

--diag_error=[warning/error_refer_number]

for example:

--diag_error=179,180

Since ARM add --diag_error=warning for armcc 4.0 or later, for old armcc, I ONLY can specify which warning number will STOP the compile process

3
Tim Zimmermann On