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.

TMS320F280039C: CCS 20.2 does not warn about unused global variables

Part Number: TMS320F280039C

Tool/software:

Subject: CCS 20.2 does not warn about unused global variables

Hi,

I'm using Code Composer Studio 20.2 with the TI C2000 compiler (CGT), and I noticed that unused **global variables** do not trigger any diagnostic messages during compilation. For example:

```c
uint16_t prev = 0;
uint32_t dataA, dataB;

These variables are declared at file scope and are never referenced anywhere in the project. However, the compiler does not issue any warning (e.g. #179-D), and memory is still allocated for them.

Is this expected behavior in CCS 20.2? Is there a way to enable diagnostics for unused global variables?

Thanks!