Skip to content
This repository was archived by the owner on Sep 2, 2025. It is now read-only.
This repository was archived by the owner on Sep 2, 2025. It is now read-only.

error: narrowing conversion of ‘***********’ from ‘unsigned int’ to ‘int’ [-Wnarrowing] #20

Description

@Tooo-Top

hello:
I'm trying to build rpc library from source.

When executing command:
cmake --build . --target install

show err :

/home/fastdds/RPC-master/examples/C++/rpcdds/c++11Types/RTPSCalculator/CalculatorDDSProtocol.cxx:131:22: error: narrowing conversion of ‘3418803882’ from ‘unsigned int’ to ‘int’ [-Wnarrowing]
  131 |                 case 0xCBC6CEAA:
      |                      ^~~~~~~~~~
/home/fastdds/RPC-master/examples/C++/rpcdds/c++11Types/RTPSCalculator/CalculatorDDSProtocol.cxx:174:22: error: narrowing conversion of ‘3389102612’ from ‘unsigned int’ to ‘int’ [-Wnarrowing]
  174 |                 case 0xCA019A14:
      |                      ^~~~~~~~~~

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