aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorFelix Dick <[email protected]>2022-10-06 13:42:52 +0200
committerFelix Dick <[email protected]>2022-10-06 13:42:52 +0200
commit552c4b7361bb1603c68498496a1db70dd4f94de0 (patch)
tree2f1b6dce3019ab2413049518bde45c4cb3672ba7
parentd7ef19e2e745c2184fcf5c2ce6ac4208d6a81594 (diff)
downloadHyprland-552c4b7361bb1603c68498496a1db70dd4f94de0.tar.gz
Hyprland-552c4b7361bb1603c68498496a1db70dd4f94de0.zip
Fix compiler warnings.
-rw-r--r--src/managers/KeybindManager.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/managers/KeybindManager.cpp b/src/managers/KeybindManager.cpp
index 7201aad3..d61bf7fd 100644
--- a/src/managers/KeybindManager.cpp
+++ b/src/managers/KeybindManager.cpp
@@ -428,10 +428,10 @@ bool CKeybindManager::handleVT(xkb_keysym_t keysym) {
// vtnr is bugged for some reason.
const std::string TTYSTR = execAndGet("head -n 1 /sys/devices/virtual/tty/tty0/active").substr(3);
- int ttynum = 0;
+ unsigned int ttynum = 0;
try {
ttynum = std::stoll(TTYSTR);
- } catch (std::exception e) {
+ } catch (std::exception &e) {
; // oops?
}