mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-22 21:45:58 +01:00
Merge pull request #793 from Dickby/fix_compiler_warnings
Fix compiler warnings.
This commit is contained in:
commit
a29af89545
1 changed files with 2 additions and 2 deletions
|
@ -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?
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue