Skip to content

Commit

Permalink
iox-eclipse-iceoryx#408 fix warning in VersionInfo
Browse files Browse the repository at this point in the history
Signed-off-by: Mathias Kraus <mathias.kraus@apex.ai>
  • Loading branch information
elBoberido committed Dec 17, 2020
1 parent 3bd533c commit de142e0
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions iceoryx_posh/source/version/version_info.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -105,10 +105,8 @@ bool VersionInfo::isValid() noexcept

VersionInfo VersionInfo::getCurrentVersion() noexcept
{
static constexpr char ICEORYX_COMMIT_ID[] = ICEORYX_SHA1;

BuildDateString_t buildDateStringCxx(cxx::TruncateToCapacity, ICEORYX_BUILDDATE);
CommitIdString_t shortCommitIdString(cxx::TruncateToCapacity, ICEORYX_COMMIT_ID, COMMIT_ID_STRING_SIZE);
BuildDateString_t buildDateStringCxx(ICEORYX_BUILDDATE);
CommitIdString_t shortCommitIdString(cxx::TruncateToCapacity, ICEORYX_SHA1, COMMIT_ID_STRING_SIZE);

return VersionInfo(static_cast<uint16_t>(ICEORYX_VERSION_MAJOR),
static_cast<uint16_t>(ICEORYX_VERSION_MINOR),
Expand All @@ -118,6 +116,5 @@ VersionInfo VersionInfo::getCurrentVersion() noexcept
shortCommitIdString);
}


} // namespace version
} // namespace iox

0 comments on commit de142e0

Please sign in to comment.