Skip to content
Snippets Groups Projects
Commit 5831beea authored by Fabian Reister's avatar Fabian Reister
Browse files

Merge branch 'fix/warning-stringop-truncation' into 'master'

Suppress -Wstringop-truncation warning in ObjectIO.cpp

See merge request sw/simox/simox!143
parents 2e754261 90528ee2
No related branches found
No related tags found
No related merge requests found
......@@ -252,8 +252,10 @@ namespace VirtualRobot
{
// copy string content to char array
std::vector<char> y(xmlString.size() + 1);
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wstringop-truncation"
strncpy(y.data(), xmlString.c_str(), xmlString.size() + 1);
#pragma GCC diagnostic pop
VirtualRobot::ManipulationObjectPtr obj;
try
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment