diff --git a/include/gz/math/Helpers.hh b/include/gz/math/Helpers.hh index c70b597ff..dd034378b 100644 --- a/include/gz/math/Helpers.hh +++ b/include/gz/math/Helpers.hh @@ -660,9 +660,9 @@ namespace ignition /// \return True if the regex was able to split the string otherwise False inline bool isTimeString(const std::string &_timeString) { - uint64_t days, hours, minutes, seconds, millis; - return splitTimeBasedOnTimeRegex( - _timeString, days, hours, minutes, seconds, millis); + // These will be thrown away, just for making the function call + uint64_t d, h, m, s, ms; + return splitTimeBasedOnTimeRegex(_timeString, d, h, m, s, ms); } /// \brief Convert a string to a std::chrono::steady_clock::duration diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 92f78df86..709d6beb7 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -19,6 +19,6 @@ add_subdirectory(graph) # Bindings subdirectories if (${pybind11_FOUND}) - # add_subdirectory(python_pybind11) + add_subdirectory(python_pybind11) endif() -# add_subdirectory(ruby) +add_subdirectory(ruby) diff --git a/src/Helpers.cc b/src/Helpers.cc index 904b2f747..d434ff192 100644 --- a/src/Helpers.cc +++ b/src/Helpers.cc @@ -183,7 +183,7 @@ namespace ignition // The following regex takes a time string in the general format of // "dd hh:mm:ss.nnn" where n is milliseconds, if just one number is // provided, it is assumed to be seconds. - static const ignition::utils::NeverDestroyed timeRegex { + static const ignition::utils::NeverDestroyed timeRegex { "^([0-9]+ ){0,1}" // day: // Any positive integer diff --git a/src/graph/GraphAlgorithms_TEST.cc b/src/graph/GraphAlgorithms_TEST.cc index 89acff4aa..d82f9ee87 100644 --- a/src/graph/GraphAlgorithms_TEST.cc +++ b/src/graph/GraphAlgorithms_TEST.cc @@ -16,7 +16,6 @@ */ #include -#include #include "gz/math/graph/Graph.hh" #include "gz/math/graph/GraphAlgorithms.hh"