메인 콘텐츠로 건너뛰기
Knowledgebase
Home
Renesas Korea

Inline assembler codes are warned_e² studio

Last Updated:02/21/2018

Question:

Even with no build errors, some error markers remain on inline assembler lines. How can they be removed?

Answer:

If no build errors are shown at project build, then the warnings likely to be false alarms from the Code Analysis (Codan) feature of CDT editor.

<<sample picture>>

Codan_inline_asm_example_en.png

Codan checks for ANSI-C syntax rules; however, compiler dependent expressions, such as inline assembler descriptions or predefined symbols which are not declared in header files, can be warned. 

When the build successful,Provided that the build is successful, you can disregard those warnings. Revision of your codes is not necessary.

You could suppress Codan warnings by enclosing inline assembler lines in the #ifndef __CDT_PARSER__ block, as stated in the following FAQ page.

How to suppress "Type '***' could not be resolved" code analysis error?

Related FAQ:
Warning Markers Shown despite No Build Errors_e² studio

Suitable Products
e² studio
  • 이 기사가 도움이 되셨나요?