diff --git a/emper/lib/LinuxVersion.cpp b/emper/lib/LinuxVersion.cpp index 0c8197730c25a756a9c085fae00471d129dd3cf6..614407cefa2bbdbbedac4ebd23cbadd40f863b1b 100644 --- a/emper/lib/LinuxVersion.cpp +++ b/emper/lib/LinuxVersion.cpp @@ -8,7 +8,6 @@ #include <cstdlib> #include "Common.hpp" -#include "Debug.hpp" static auto checked_strtol(const std::string& s) -> long { static const int DECIMAL = 10; @@ -25,9 +24,11 @@ static auto checked_strtol(const std::string& s) -> long { DIE_MSG("strtol found no digits in " << s); } - if (endptr != startptr + s.size()) { - LOGW("LinuxVersion compare ignored non digits in " << s) - } + // TODO: We could report remaining bytes of the string by returning + // std::string(endptr) together with 'res' (potentially using + // std::pair). Not sure if we even need to check if "endptr != + // startptr + s.size()", or if we could always cosntruct + // std::string(endptr), potentially constructing the empty string. return res; }