Use -Wpedantic (#306)
* add /W4 flag for windows * use uint8 like defined in messages: fix warning C4244 * fix sign size_t comparison * add only pedantic, not W4, deal with windows another day * another sign compare warning
This commit is contained in:
parent
ce146cfdba
commit
71f5b7fe5b
10 changed files with 45 additions and 43 deletions
|
@ -22,7 +22,7 @@
|
|||
namespace rclcpp_lifecycle
|
||||
{
|
||||
|
||||
Transition::Transition(unsigned int id, const std::string & label)
|
||||
Transition::Transition(uint8_t id, const std::string & label)
|
||||
: owns_rcl_transition_handle_(true)
|
||||
{
|
||||
auto transition_handle = new rcl_lifecycle_transition_t;
|
||||
|
@ -35,7 +35,7 @@ Transition::Transition(unsigned int id, const std::string & label)
|
|||
}
|
||||
|
||||
Transition::Transition(
|
||||
unsigned int id, const std::string & label,
|
||||
uint8_t id, const std::string & label,
|
||||
State && start, State && goal)
|
||||
: owns_rcl_transition_handle_(true)
|
||||
{
|
||||
|
@ -75,7 +75,7 @@ Transition::~Transition()
|
|||
}
|
||||
}
|
||||
|
||||
unsigned int
|
||||
uint8_t
|
||||
Transition::id() const
|
||||
{
|
||||
return transition_handle_->id;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue