Fix compiler warnings.

This commit is contained in:
Felix Dick 2022-10-06 13:42:52 +02:00
parent d7ef19e2e7
commit 552c4b7361

View file

@ -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?
}