Skip to content

Fix Renesas CC-RX compiler warnings #44

@mzella-ll

Description

@mzella-ll

When building the project with the Renesas CC-RX compiler, several compiler warnings are reported.

The warnings are related to stricter type checking around enum and integer conversions, in particular:

  • enumerated type mixed with another type
  • integer conversion resulted in a change of sign
  • enumeration value not handled in switch

The affected areas include:

  • firmware transfer request status checking
  • the global CSMP library service status variable
  • response status handling in cgmsagent.c
  • protobuf wire type assignment in the vendored protobuf-c code

The proposed fix is to make the relevant type conversions explicit, use the proper enum type for the CSMP library status, and add an explicit default case to the affected switch statement.

The intended behavior is unchanged. The goal is only to make the code compile cleanly with CC-RX and avoid warnings caused by implicit enum/integer conversions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions