Tool/software: TI C/C++ Compiler
What is/are the command line option/s to enable warnings for TI ARM CGT? Like it is e.g., -Wall for gcc.
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Tool/software: TI C/C++ Compiler
What is/are the command line option/s to enable warnings for TI ARM CGT? Like it is e.g., -Wall for gcc.
Hi,
I think you just need to make sure you do not have "--no_warnings" in the command line.
Please refer to compiler user's guide, section 2.7.1
I do not use this option. I find it still unlikely that there is nowadays a compiler, that does not give the user arguments at hand to control the number of warnings and the warning levels.
GCC, LLVM, MSVC all have similar options to achive this.
Specifcally I am asking this question, as I saw that TI ARM CGT does not warn about wrong enum comparisons (gcc warning would be -Wenum-compare) and so I thought there must be a switch to enable this warning.
Hi,
You can try "--check_misra=10.1"
Also, you can try some static analysis tools.
Did you go through the documentation compiler user's guide, section 2.7.1
You can try --issue_remarks Issues remarks (non-serious warnings), which are suppressed by default.
I have not used this myself, but please check if it helps.
Yes I am using, --issue_remarks, however this has the downside, that --emit_warnings_as_errors does not include the issued remarks.
Therefore I need to manually add a list of all remarks I want to turn into errors and this list can get quite long.Furthermore I can not find a list on the TI Website, that gives a complete list of all remarks that exist. Could you show me one?
The TI ARM compiler has no equivalent to gcc -Wall. To learn how to manage diagnostics in the TI ARM compiler, please search the TI ARM compiler manual for the sub-chapter titled Understanding Diagnostic Messages.
user6135372 said:I need to manually add a list of all remarks I want to turn into errors and this list can get quite long.Furthermore I can not find a list on the TI Website, that gives a complete list of all remarks that exist. Could you show me one?
The existing issue EXT_EP-9948 requests that this list of diagnostics be published. You are welcome to follow it with the link below in my signature.
Thanks and regards,
-George