From 5a288c69e3c7fa54421c97691a5e55e6ec6cb808 Mon Sep 17 00:00:00 2001 From: momo5502 Date: Mon, 1 Mar 2021 21:07:15 +0100 Subject: [PATCH] Cleanup warnings --- src/client/component/console.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/client/component/console.cpp b/src/client/component/console.cpp index d380b0c..db4f68c 100644 --- a/src/client/component/console.cpp +++ b/src/client/component/console.cpp @@ -33,9 +33,9 @@ namespace console { hide_console(); - _pipe(this->handles_, 1024, _O_TEXT); - _dup2(this->handles_[1], 1); - _dup2(this->handles_[1], 2); + (void)_pipe(this->handles_, 1024, _O_TEXT); + (void)_dup2(this->handles_[1], 1); + (void)_dup2(this->handles_[1], 2); //setvbuf(stdout, nullptr, _IONBF, 0); //setvbuf(stderr, nullptr, _IONBF, 0); @@ -221,7 +221,7 @@ namespace console SetWindowPos(get_window(), nullptr, rect.left, rect.top, width, height, 0); - const auto logo_window = *reinterpret_cast(SELECT_VALUE(0x14A9F6080, 0x14B5B94D0)); + auto* const logo_window = *reinterpret_cast(SELECT_VALUE(0x14A9F6080, 0x14B5B94D0)); SetWindowPos(logo_window, nullptr, 5, 5, width - 25, 60, 0); } }