mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-26 21:45:59 +01:00
use std::unreachable in avars
This commit is contained in:
parent
f9756d10d4
commit
42d18143e5
2 changed files with 5 additions and 4 deletions
|
@ -128,10 +128,10 @@ public:
|
||||||
case AVARTYPE_COLOR:
|
case AVARTYPE_COLOR:
|
||||||
return m_cValue != m_cGoal;
|
return m_cValue != m_cGoal;
|
||||||
default:
|
default:
|
||||||
return false;
|
std::unreachable();
|
||||||
}
|
}
|
||||||
|
|
||||||
return false; // unreachable
|
std::unreachable();
|
||||||
}
|
}
|
||||||
|
|
||||||
void warp() {
|
void warp() {
|
||||||
|
@ -149,7 +149,7 @@ public:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
break;
|
std::unreachable();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -120,3 +120,4 @@ extern "C" {
|
||||||
#include "ext-workspace-unstable-v1-protocol.h"
|
#include "ext-workspace-unstable-v1-protocol.h"
|
||||||
|
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
|
#include <utility>
|
Loading…
Reference in a new issue