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.

Compiler/ARM-CGT: What diagnosis is --diag_warning=225

Part Number: ARM-CGT

Tool/software: TI C/C++ Compiler

Creating a project in CCS generally adds --diag_warning=225.

What is this warning id 225 about that makes it so special compared to all other diagnosis flags that it is generally created by CCS? I have never seens a 225 compiler warning in all the time using the TI ARM CGT compiler.

  • When you call a function that has no prototype visible, the compiler typically issues a diagnostic similar to ...

    "file.c", line 3: warning #225-D: function "has_no_prototype" declared implicitly

    Older versions of the compiler do not issue that diagnostic by default.  But this diagnostic proved so useful in avoiding problems, the compiler option --diag_warning=225 was added to the default compiler options used in a new CCS project.  Later versions of the compiler issue that diagnostic by default.  In such a case, --diag_warning=225 has no effect.  But, some customer still use older compilers, so --diag_warning=225 remains among the default compiler options used in a new CCS project.

    Thanks and regards,

    -George