diff options
| author | Felix Dick <felix.dick@web.de> | 2022-10-06 13:42:52 +0200 |
|---|---|---|
| committer | Felix Dick <felix.dick@web.de> | 2022-10-06 13:42:52 +0200 |
| commit | 552c4b7361bb1603c68498496a1db70dd4f94de0 (patch) | |
| tree | 2f1b6dce3019ab2413049518bde45c4cb3672ba7 | |
| parent | d7ef19e2e745c2184fcf5c2ce6ac4208d6a81594 (diff) | |
Fix compiler warnings.
| -rw-r--r-- | src/managers/KeybindManager.cpp | 4 |
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? } |
