From 79791c9ed4a9f78d8a444006e2cdd4a63d1a5862 Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Tue, 2 May 2023 14:53:15 +0100 Subject: [PATCH] internal: fix -Wsign-compare and -Wunused-variable warnings --- src/managers/KeybindManager.cpp | 4 ++-- src/render/OpenGL.cpp | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/managers/KeybindManager.cpp b/src/managers/KeybindManager.cpp index 27de2b4e..c0ed8d53 100644 --- a/src/managers/KeybindManager.cpp +++ b/src/managers/KeybindManager.cpp @@ -1309,9 +1309,9 @@ void CKeybindManager::moveCursorToCorner(std::string arg) { void CKeybindManager::moveCursor(std::string args) { std::string x_str, y_str; - int x, y, i; + int x, y; - i = args.find_first_of(' '); + size_t i = args.find_first_of(' '); if (i == std::string::npos) { Debug::log(ERR, "moveCursor, takes 2 arguments."); return; diff --git a/src/render/OpenGL.cpp b/src/render/OpenGL.cpp index 7626d419..d8edb84c 100644 --- a/src/render/OpenGL.cpp +++ b/src/render/OpenGL.cpp @@ -1058,7 +1058,6 @@ void CHyprOpenGLImpl::renderBorder(wlr_box* box, const CGradientValueData& grad, if (!pixman_region32_not_empty(m_RenderData.pDamage) || (m_pCurrentWindow && m_pCurrentWindow->m_sAdditionalConfigData.forceNoBorder)) return; - static auto* const PBORDERSIZE = &g_pConfigManager->getConfigValuePtr("general:border_size")->intValue; static auto* const PMULTISAMPLE = &g_pConfigManager->getConfigValuePtr("decoration:multisample_edges")->intValue; wlr_box newBox = *box;