From 756d00cfa94d80f23dd99f16d3b9ad8631677d15 Mon Sep 17 00:00:00 2001 From: steve02081504 Date: Fri, 7 Apr 2023 15:25:49 +0800 Subject: [PATCH] ignoring warning_logger --- src/my-gists | 2 +- src/shioricaller.cpp | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/my-gists b/src/my-gists index eb17695..f4f4887 160000 --- a/src/my-gists +++ b/src/my-gists @@ -1 +1 @@ -Subproject commit eb17695f4090ff7ea73534b7519e720617d430d1 +Subproject commit f4f4887964efcbc3fd15709d8307341e37147fe9 diff --git a/src/shioricaller.cpp b/src/shioricaller.cpp index 0487672..2c6f25b 100644 --- a/src/shioricaller.cpp +++ b/src/shioricaller.cpp @@ -27,13 +27,11 @@ int wmain(int argc, wchar_t* argv[]){ auto error_handler = [](Cshiori::Error err) { std::cerr << RED_OUTPUT("Error: " << to_ansi_colored_string(err)) << std::endl; }; - auto warning_handler = nullptr;//shioricaller does not need to handle warnings as it is only used for basic purposes Cshiori shiori{ argv[1], Cshiori::error_logger_type{ - error_handler, - warning_handler + error_handler } };