- DALI_LOG_ERROR("NavigationMesh: Can't open %s for reading: %s", filename.c_str(), strerror(errno));
+ const int bufferLength = 128;
+ char buffer[bufferLength];
+
+ // Return type of stderror_r is different between system type. We should not use return value.
+ [[maybe_unused]] auto ret = strerror_r(errno, buffer, bufferLength - 1);
+
+ DALI_LOG_ERROR("NavigationMesh: Can't open %s for reading: %s", filename.c_str(), buffer);