Skip to content

Commit 7e1517e

Browse files
authored
Merge pull request #821 from evoskuil/master
Delint.
2 parents 363bb2c + af3e274 commit 7e1517e

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

src/config/utilities.cpp

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,9 @@ std::string to_normal_host(const std::string& host,
8686
}
8787
}
8888

89+
#if defined(HAVE_LINUX)
8990
std::optional<uint64_t> get_memory_setting(std::string name) NOEXCEPT
9091
{
91-
#if defined(HAVE_LINUX)
9292
try
9393
{
9494
uint64_t value{};
@@ -101,10 +101,15 @@ std::optional<uint64_t> get_memory_setting(std::string name) NOEXCEPT
101101
catch (...)
102102
{
103103
}
104-
#endif
105104

106105
return {};
107106
}
107+
#else
108+
std::optional<uint64_t> get_memory_setting(std::string) NOEXCEPT
109+
{
110+
return {};
111+
}
112+
#endif
108113

109114
} // namespace config
110115
} // namespace network

0 commit comments

Comments
 (0)