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.

TMS320F28035: variable was set but never used.

Part Number: TMS320F28035
Other Parts Discussed in Thread: TEST2

Hi, I'm testing IQmath in F28035 controlcard using CCS7.

I can get the right result but the warning says "test1, test2, test3, test4 were set but never used". It's strange since I've used them in line 37,38,39,40 and I can get the correct result.

  • Hi,

    Howard Zou said:
    It's strange since I've used them in line 37,38,39,40 and I can get the correct result.

    You've not used these variables but only stored your computation result into these variables. You need to further use these variables for eg. you can try with:

    Testx = test1 *test2* test3* test4;

    You'll be able to observe that the previous warning disappears.

    Regards,

    Gautam