Skip to content

Commit

Permalink
Fix build warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
AnarManafov committed Jun 22, 2023
1 parent 933ecd8 commit ebb1261
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
10 changes: 5 additions & 5 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
# Copyright 2014-2023 GSI, Inc. All rights reserved.
#
#
#
# Check if cmake has the required version
#
cmake_minimum_required( VERSION 3.23.1 FATAL_ERROR )

project( DDS )
set(BUILD_SHARED_LIBS ON)

set(DDS_USER_DEFAULTS_CFG_VERSION "0.5")
set(DDS_PROTOCOL_VERSION "2")

#
# Check if cmake has the required version
#
cmake_minimum_required( VERSION 3.23.1 FATAL_ERROR )

string(TOLOWER ${PROJECT_NAME} PROJECT_NAME_LOWER)

set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake/modules")
Expand Down
8 changes: 4 additions & 4 deletions dds-session/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ void rebuildSessions(vector<fs::path>& _session_dirs, StringVector_t& _sessions)
_session_dirs.push_back(dir.path());
// Workaround: using .leaf().string(), instead of just .leaf(), vecasue we want to avoid double quotes
// in output.
_sessions.push_back(dir.path().leaf().string());
_sessions.push_back(dir.path().filename().string());
}
}

Expand All @@ -99,7 +99,7 @@ void listSessions(const vector<fs::path>& _session_dirs, SSessionsSorting::EType

for (auto& dir : sortedDirs)
{
string sSID = dir.second.leaf().string();
string sSID = dir.second.filename().string();
if (!IsValid(sSID))
continue;

Expand Down Expand Up @@ -137,7 +137,7 @@ void performDataRetention(const vector<fs::path>& _session_dirs) noexcept
<< " will be deleted...";
for (const auto& i : _session_dirs)
{
const string sid{ i.leaf().string() };
const string sid{ i.filename().string() };

if (!IsValid(sid))
continue;
Expand Down Expand Up @@ -304,7 +304,7 @@ int main(int argc, char* argv[])
{
for (auto& dir : session_dirs)
{
const string sSID(dir.leaf().string());
const string sSID(dir.filename().string());

// Ignore non-sid or bad items
if (!IsValid(sSID))
Expand Down

0 comments on commit ebb1261

Please sign in to comment.