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.

Multiple warnings and remarks generated from CGT 5.2.x - These did not exist with older CGT 4.1.x

I have recently migrated several projects from CCS 3.3 (CGT 4.1.4) to CCS 4.2 (CGT 5.2.10).

During compilation, I now receive a large number of warnings. Some of these warnings are from within Code GenerationTools files that I have not touched.  I am wondering if I should just suppress these warnings or if I need to do something about them.

'Building file: C:/SVN/UAC/Firmware/Foundation/Object.cpp'
'Invoking: Compiler'
"C:/Texas Instruments/ccsv4/tools/compiler/C2000 Code Generation Tools 5.2.10/bin/cl2000" --silicon_version=28 -g -O0 --cpp_default --define="_DEBUG" --define="__CGTOOLS_1_4__" --define="LARGE_MODEL" --define="__TIBIOS__" --define="__NORTTI__" --define="BOOTLOADER" --include_path="C:/Texas Instruments/ccsv4/tools/compiler/C2000 Code Generation Tools 5.2.10/include" --include_path="C:/SVN/UAC/Firmware/Bootloader/Debug" --include_path="C:/Texas Instruments/bios_5_41_10_36/packages/ti/bios/include" --include_path="C:/Texas Instruments/bios_5_41_10_36/packages/ti/rtdx/include/c2000" --include_path="C:/Texas Instruments/xdais_7_10_00_06/packages/ti/xdais" --include_path="C:/SVN/UAC/Firmware/Bootloader" --include_path="C:/SVN/UAC/Firmware/Foundation" --include_path="C:/SVN/UAC/Firmware/BaseObjects" --include_path="C:/SVN/UAC/Firmware/Devices" --include_path="C:/SVN/UAC/Firmware/PointOfUse" --include_path="C:/SVN/UAC/Firmware/RuntimeLibrary" --include_path="C:/SVN/UAC/Firmware/Platform/TI" --diag_warning=225 --display_error_number --diag_suppress=403 --diag_suppress=195 --issue_remarks --large_memory_model --unified_memory --preproc_with_compile --preproc_dependency="Object.pp"  "C:/SVN/UAC/Firmware/Foundation/Object.cpp"
"C:/Texas Instruments/ccsv4/tools/compiler/C2000 Code Generation Tools 5.2.10/include/new", line 121: remark #885-D: support for placement delete is disabled
"C:/Texas Instruments/ccsv4/tools/compiler/C2000 Code Generation Tools 5.2.10/include/new", line 124: remark #885-D: support for placement delete is disabled
"C:/Texas Instruments/ccsv4/tools/compiler/C2000 Code Generation Tools 5.2.10/include/new", line 127: remark #885-D: support for placement delete is disabled
"C:/Texas Instruments/ccsv4/tools/compiler/C2000 Code Generation Tools 5.2.10/include/new", line 130: remark #885-D: support for placement delete is disabled
"C:/Texas Instruments/ccsv4/tools/compiler/C2000 Code Generation Tools 5.2.10/include/xmemory", line 219: remark #880-D: parameter "_First" was never referenced
"C:/Texas Instruments/ccsv4/tools/compiler/C2000 Code Generation Tools 5.2.10/include/xmemory", line 219: remark #880-D: parameter "_Last" was never referenced
"C:/Texas Instruments/ccsv4/tools/compiler/C2000 Code Generation Tools 5.2.10/include/xmemory", line 219: remark #880-D: parameter "_Al" was never referenced
"C:/Texas Instruments/ccsv4/tools/compiler/C2000 Code Generation Tools 5.2.10/include/xstring", line 505: remark #238-D: controlling expression is constant
"C:/Texas Instruments/ccsv4/tools/compiler/C2000 Code Generation Tools 5.2.10/include/xstring", line 523: remark #238-D: controlling expression is constant
"C:/Texas Instruments/ccsv4/tools/compiler/C2000 Code Generation Tools 5.2.10/include/xstring", line 1605: remark #238-D: controlling expression is constant
"C:/Texas Instruments/ccsv4/tools/compiler/C2000 Code Generation Tools 5.2.10/include/xstring", line 1609: remark #238-D: controlling expression is constant
"C:/Texas Instruments/ccsv4/tools/compiler/C2000 Code Generation Tools 5.2.10/include/xstring", line 341: remark #681-D: call of function "std::_String_val<_Ty, _Alloc>::_String_val(std::_String_val<_Ty, _Alloc>::_Alty) [with _Ty=char, _Alloc=std::allocator<char>]" (declared at line 341) cannot be inlined
          detected during:
            instantiation of "std::_String_val<_Ty, _Alloc>::_String_val(std::_String_val<_Ty, _Alloc>::_Alty) [with _Ty=char, _Alloc=std::allocator<char>]" at line 405
            instantiation of "std::basic_string<_Elem, _Traits, _Ax>::basic_string(const std::basic_string<_Elem, _Traits, _Ax>::_Myt &) [with _Elem=char, _Traits=std::char_traits<char>, _Ax=std::allocator<char>]" at line 19 of "C:/Texas Instruments/ccsv4/tools/compiler/C2000 Code Generation Tools 5.2.10/include/stdexcept"
"C:/Texas Instruments/ccsv4/tools/compiler/C2000 Code Generation Tools 5.2.10/include/xstring", line 1625: remark #342-D: value copied to temporary, reference to temporary used
          detected during:
            instantiation of "void std::basic_string<_Elem, _Traits, _Ax>::_Eos(std::basic_string<_Elem, _Traits, _Ax>::size_type) [with _Elem=char, _Traits=std::char_traits<char>, _Ax=std::allocator<char>]" at line 1671
            instantiation of "void std::basic_string<_Elem, _Traits, _Ax>::_Tidy(bool, std::basic_string<_Elem, _Traits, _Ax>::size_type) [with _Elem=char, _Traits=std::char_traits<char>, _Ax=std::allocator<char>]" at line 406
            instantiation of "std::basic_string<_Elem, _Traits, _Ax>::basic_string(const std::basic_string<_Elem, _Traits, _Ax>::_Myt &) [with _Elem=char, _Traits=std::char_traits<char>, _Ax=std::allocator<char>]" at line 19 of "C:/Texas Instruments/ccsv4/tools/compiler/C2000 Code Generation Tools 5.2.10/include/stdexcept"
'Finished building: C:/SVN/UAC/Firmware/Foundation/Object.cpp'

I can of course choose to suppress the warnings, but feel it would be better to understand why I am getting them and address the causes if possible.

In addition to those warnings and remarks coming from TI supplied files, I also get a large number of 403-D warnings (constructor not virtual).  As I am working with BIOS and never actually call any constructors, I am less worried about these warnings and have chosen to simply suppress these warnings.

  • You should not see these diagnostics.  I filed SDSCM00040587 in the SDOWP system.  Feel free to track it with the SDOWP link in my sig below.  

    In the meantime, you should suppress these warnings yourself.  Sorry.

    Thanks and regards,

    -George