Skip to content

Commit

Permalink
Avoiding "unused function" warning
Browse files Browse the repository at this point in the history
  • Loading branch information
gershnik committed May 27, 2024
1 parent 80766be commit 735045b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/config_samba.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ static auto findSmbConfViaSamba() -> std::optional<std::filesystem::path> {
return {};
}

#ifdef __linux__
static auto findKsmbConf() -> std::optional<std::filesystem::path> {
std::array paths = {
"/etc/ksmbd/ksmbd.conf",
Expand All @@ -124,6 +125,7 @@ static auto findKsmbConf() -> std::optional<std::filesystem::path> {
}
return {};
}
#endif

auto Config::findSmbConf() -> std::optional<std::filesystem::path> {

Expand Down

0 comments on commit 735045b

Please sign in to comment.