Skip to content

[BUG] Compiler errors with CCS compiler #1273

Open
@SvenP91

Description

@SvenP91

Describe the bug
I am working with the ARM-CGT Compiler from TI in version v20.2.7.LTS. It seems to be very picky with the rules and has thrown these errors while compiling. Here are my suggestions:

  • source\FreeRTOS_DNS_Parser.c, line 278:
    error 551-D: variable "xDNSHookReturn" is used before its value is set
    --> 265: BaseType_t xDNSHookReturn = 0U;

  • source\FreeRTOS_IPv6.c, line 102:
    error 193-D: type qualifier is meaningless on cast type
    --> 102: const uint8_t * const pucEthernetBuffer = ( const uint8_t *) pvEthernetBuffer;

  • same in:

    • source\FreeRTOS_IPv6.c, line 106
    • source/FreeRTOS_IPv4.c, line 85
  • source\FreeRTOS_RA.c, line 332:
    error 552-D: variable "ulMTU" was set but never used
    --> guard by ifdef ipconfigHAS_PRINTF

Target

  • Development board: TMS570LC435
  • Instruction Set Architecture: 16/32 Bit RISC
  • IDE and version: VS Code
  • Toolchain and version: ARM-CGT Compiler v20.2.7.LTS

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions