Skip to content

Commit

Permalink
fix warnings on Windows (#34)
Browse files Browse the repository at this point in the history
  • Loading branch information
dirk-thomas authored and wjwwood committed Jun 3, 2016
1 parent 2fefcf4 commit b0839c1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion rmw_fastrtps_cpp/src/TypeSupport.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ bool TypeSupport::serializeROSmessage(eprosima::fastcdr::Cdr &ser, const rosidl_
// Control maximum length.
if((member->string_upper_bound_ && str.length() > member->string_upper_bound_ + 1) || str.length() > 256)
{
printf("string overcomes the maximum length with length %lu\n", str.length());
printf("string overcomes the maximum length with length %zu\n", str.length());
throw std::runtime_error("string overcomes the maximum length");
}
ser << str;
Expand Down
2 changes: 1 addition & 1 deletion rmw_fastrtps_cpp/src/functions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ extern "C"
FastRTPSNodeImpl * node_impl = nullptr;
try {
node_impl = new FastRTPSNodeImpl();
} catch(std::bad_alloc & exc) {
} catch(std::bad_alloc) {
RMW_SET_ERROR_MSG("failed to allocate node impl struct");
return NULL;
}
Expand Down

0 comments on commit b0839c1

Please sign in to comment.