diff --git a/src/ConfigMain.cpp b/src/ConfigMain.cpp index 3e2efbe..34b2e82 100644 --- a/src/ConfigMain.cpp +++ b/src/ConfigMain.cpp @@ -18,6 +18,7 @@ // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. #include +#include #include #include #include "CommandLineParser.hpp" @@ -603,7 +604,7 @@ void SetVarPermissions( using namespace std::filesystem; try { if (fs::exists(path)) { - chown(path.c_str(),uid,gid); + std::ignore = chown(path.c_str(),uid,gid); if (fs::is_directory(path)) { fs::permissions(path, directoryPermissions, fs::perm_options::replace); for (const auto& entry : fs::recursive_directory_iterator(path)) { diff --git a/src/InvertingMutexTest.cpp b/src/InvertingMutexTest.cpp index 626676b..da4ac5a 100644 --- a/src/InvertingMutexTest.cpp +++ b/src/InvertingMutexTest.cpp @@ -22,6 +22,7 @@ #include #include #include +#include #include "json.hpp" #include "json_variant.hpp" @@ -46,7 +47,7 @@ TEST_CASE("inverting_mutext test", "[inverting_mutex_test]") std::thread thread( [&mutex]() mutable { - nice(5); + std::ignore = nice(5); { std::lock_guard lock(mutex); SetThreadName("imTest"); diff --git a/src/MimeTypes.cpp b/src/MimeTypes.cpp index 637df49..12adde9 100644 --- a/src/MimeTypes.cpp +++ b/src/MimeTypes.cpp @@ -19,6 +19,7 @@ #include "MimeTypes.hpp" +#include "ss.hpp" using namespace pipedal; @@ -136,7 +137,7 @@ static std::string toLower(const std::string&value) void MimeTypes::AddMimeType(const std::string&extension_, const std::string&mimeType) { - std::string extension = std::string(".") + toLower(extension_); + std::string extension = SS("." << toLower(extension_)); mimeTypeToExtension[mimeType] = extension; extensionToMimeType[extension] = mimeType; if (mimeType.starts_with("audio/")) diff --git a/src/Worker.cpp b/src/Worker.cpp index 7e30685..6f14779 100644 --- a/src/Worker.cpp +++ b/src/Worker.cpp @@ -39,7 +39,8 @@ #include #include "Lv2Log.hpp" #include -#include // for nice() +#include // for nice( +#include #include "util.hpp" using namespace pipedal; @@ -190,7 +191,7 @@ void HostWorkerThread::ThreadProc() noexcept // run nice +2 (priority -2 on Windows) SetThreadName("lv2_worker"); errno = 0; - (void)nice(2); + std::ignore = nice(2); if (errno != 0) { std::cout << "Warning: Unable to run Lv2 schedule thread at nice +1" << std::endl;