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.

CCS/TM4C1294NCPDT: "package/cfg/TestApp_pem4f.c", line xxxxx: warning #112-D: statement is unreachable

Part Number: TM4C1294NCPDT


Tool/software: Code Composer Studio

Hi,

I am developing embedded firmware for TM4C1294NCPDT using TI-RTOS and TivaWare library using CCSv6.2.

Recently I installed CCSv9.0.1, and compiled empty project.

Same I compiled with CCSv6.2, compiled successfully without any warnings.

I got below warnings with CCSv9:

What is the reason for these warnings ?

Please help me to resolve it.

Thanking you.

Best Regards,

Harshal

  • If we change compiler settings other warnings also suppressed.

    I would like to know reason for these specific warnings.

    Because when I compile it with CCSv6 project compiles without warnings and with CCSv9 it gives me warnings.

    So what is change between these two environments ?
  • This is not CCS issue.
    This is compiler and tool chain issue.
    Which compiler versions, TI-RTOS and libraries do you use under both CCS versions?
    Even, if you use the same compiler version different default settings could be used under both CCS versions.
    Did you tried to compare empty_pem4f.c coming from both environments?
  • What can I do in new environment to resolve this issue ?

    Please provide me solution to resolve this issue in new environment.
  • Harshal,

    This error is coming from the part of the build that creates the BIOS libraries. Basically the first step in the build invokes XDCtools which uses the BIOS config file to auto-generate source files which are then built into a BIOS library. It is during this build that you are seeing this warning. 

    The warning is harmless and just means that those return statements were never reached. You can simply ignore the message.  If you feel the need to get rid of the warnings, then use --diag_suppress=112 compiler option. You can specify this option just for the BIOS build, so it does not apply to all your project source files. To do this, open your project properties and observe the compiler options passed to XDCtools.

    Edit the COMPILER_FLAGS variable by going to Build->Variables tab, check the box for 'Show system variables", find and edit COMPILER_FLAGS. Add the --diag_suppress=112 to the end of the options list.

    Now when you rebuild the project, the warnings should no longer appear.

    As far as migrating to newer CCS, you can certainly use CCSv9 with TI-RTOS for TivaC and TivaWare. However, note that the latest version of TI-RTOS was released several years ago and is compatible with XDCtools 3.32.xx (specifically 3.32.00.06 and higher). I don't believe it is compatible with the XDCtools 3.55.xx that comes with CCSv9. So as long as you install 3.32.xx version of XDCtools into CCSv9, you should be able to import and build TI-RTOS projects with CCSv9.

    Hope this helps answer your questions.

  • I tried as mentioned and it resolved my issue related to warning.