diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2021-05-04 15:39:47 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2021-05-04 16:01:48 +0300 |
commit | fe2c12bfe9fdc2713724bb400172e9915477cd65 (patch) | |
tree | e4445ee6344602d3676e59473cb410905a7a72ce /test/unit_tests/worker | |
parent | get rid of SafeInt (diff) | |
download | winapi-common-fe2c12bfe9fdc2713724bb400172e9915477cd65.tar.gz winapi-common-fe2c12bfe9fdc2713724bb400172e9915477cd65.zip |
fix compiler warnings
Diffstat (limited to 'test/unit_tests/worker')
-rw-r--r-- | test/unit_tests/worker/worker.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/unit_tests/worker/worker.cpp b/test/unit_tests/worker/worker.cpp index 9e48deb..093bba8 100644 --- a/test/unit_tests/worker/worker.cpp +++ b/test/unit_tests/worker/worker.cpp @@ -43,7 +43,7 @@ bool is_window_visible() { winapi::Handle write_to(winapi::Handle dest, const std::string& msg) { try { dest.write(msg + "\r\n"); - } catch (const std::exception& e) { + } catch (const std::exception&) { return winapi::Handle{}; } return dest; @@ -111,7 +111,7 @@ int loop() { } // namespace -int main(int argc, char* argv[]) { +int main() { int ec = loop(); std::this_thread::sleep_for(std::chrono::milliseconds{1000}); return ec; |