Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix compilation warnings from VS2019 #1402

Merged
merged 3 commits into from
Aug 17, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ build_script:
# Windows 10
#------------------
- cmd: mkdir build && cd build
- cmd: cmake %CMAKE_GENERATOR% -DCMAKE_BUILD_TYPE=%configuration% -DDART_MSVC_DEFAULT_OPTIONS="%MSVC_DEFAULT_OPTIONS%" %CMAKE_TOOLCHAIN_FILE% %CMAKE_TOOLCHAIN% ..
- cmd: cmake %CMAKE_GENERATOR% -DCMAKE_BUILD_TYPE=%configuration% -DDART_VERBOSE=ON -DDART_MSVC_DEFAULT_OPTIONS="%MSVC_DEFAULT_OPTIONS%" %CMAKE_TOOLCHAIN_FILE% %CMAKE_TOOLCHAIN% ..
# - cmd: cmake --build . --target ALL_BUILD --config %configuration% -- /maxcpucount:4 /verbosity:quiet

#-------------------------------
Expand Down
4 changes: 2 additions & 2 deletions dart/dynamics/SharedLibraryIkFast.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ bool loadFunction(

if (!symbol)
{
dterr << "Failed to load the symbol '" << symbolName
<< "' from the file '" << fileName << "'.\n";
dterr << "Failed to load the symbol '" << symbolName << "' from the file '"
<< fileName << "'.\n";
return false;
}

Expand Down
26 changes: 13 additions & 13 deletions dart/utils/XmlHelpers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ Eigen::Vector2d toVector2d(const std::string& str)
{
std::cerr << "value [" << pieces[i]
<< "] is not a valid double for Eigen::Vector2d[" << i
<< std::endl;
<< "]: " << e.what() << std::endl;
}
}
}
Expand Down Expand Up @@ -222,8 +222,8 @@ Eigen::Vector3d toVector3d(const std::string& str)
catch (boost::bad_lexical_cast& e)
{
std::cerr << "value [" << pieces[i]
<< "] is not a valid double for Eigen::Vector3d[" << i << "]"
<< std::endl;
<< "] is not a valid double for Eigen::Vector3d[" << i
<< "]: " << e.what() << std::endl;
}
}
}
Expand Down Expand Up @@ -253,8 +253,8 @@ Eigen::Vector3i toVector3i(const std::string& str)
catch (boost::bad_lexical_cast& e)
{
std::cerr << "value [" << pieces[i]
<< "] is not a valid int for Eigen::Vector3i[" << i << "]"
<< std::endl;
<< "] is not a valid int for Eigen::Vector3i[" << i
<< "]: " << e.what() << std::endl;
}
}
}
Expand Down Expand Up @@ -284,8 +284,8 @@ Eigen::Vector6d toVector6d(const std::string& str)
catch (boost::bad_lexical_cast& e)
{
std::cerr << "value [" << pieces[i]
<< "] is not a valid double for Eigen::Vector6d[" << i << "]"
<< std::endl;
<< "] is not a valid double for Eigen::Vector6d[" << i
<< "]: " << e.what() << std::endl;
}
}
}
Expand Down Expand Up @@ -315,8 +315,8 @@ Eigen::VectorXd toVectorXd(const std::string& str)
catch (boost::bad_lexical_cast& e)
{
std::cerr << "value [" << pieces[i]
<< "] is not a valid double for Eigen::VectorXd[" << i << "]"
<< std::endl;
<< "] is not a valid double for Eigen::VectorXd[" << i
<< "]: " << e.what() << std::endl;
}
}
}
Expand Down Expand Up @@ -346,8 +346,8 @@ Eigen::Isometry3d toIsometry3d(const std::string& str)
catch (boost::bad_lexical_cast& e)
{
std::cerr << "value [" << pieces[i]
<< "] is not a valid double for SE3[" << i << "]"
<< std::endl;
<< "] is not a valid double for SE3[" << i
<< "]: " << e.what() << std::endl;
}
}
}
Expand Down Expand Up @@ -379,8 +379,8 @@ Eigen::Isometry3d toIsometry3dWithExtrinsicRotation(const std::string& str)
catch (boost::bad_lexical_cast& e)
{
std::cerr << "value [" << pieces[i]
<< "] is not a valid double for SE3[" << i << "]"
<< std::endl;
<< "] is not a valid double for SE3[" << i
<< "]: " << e.what() << std::endl;
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#include <dart/optimizer/MultiObjectiveSolver.hpp>
#include <gtest/gtest.h>
#if HAVE_PAGMO
#include <dart/optimizer/pagmo/pagmo.hpp>
# include <dart/optimizer/pagmo/pagmo.hpp>
#endif

using namespace dart;
Expand Down