Merge pull request #793 from Dickby/fix_compiler_warnings

Fix compiler warnings.
This commit is contained in:
Vaxry 2022-10-06 12:54:04 +01:00 committed by GitHub
commit a29af89545
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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