aboutsummaryrefslogtreecommitdiffhomepage
path: root/hyprctl
diff options
context:
space:
mode:
authorGreatly Pleased <[email protected]>2023-11-10 22:45:20 +0100
committerGitHub <[email protected]>2023-11-10 21:45:20 +0000
commit1e6e9b66a5837d62d374edd405bdf561813ebbce (patch)
tree160c7374be027899c58db63b418c83595fa1ac61 /hyprctl
parent92cb44ddb2b464d1ef770ba1f4c79eafecae065b (diff)
downloadHyprland-1e6e9b66a5837d62d374edd405bdf561813ebbce.tar.gz
Hyprland-1e6e9b66a5837d62d374edd405bdf561813ebbce.zip
hyprctl: Fix build warnings (#3821)
Diffstat (limited to 'hyprctl')
-rw-r--r--hyprctl/main.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/hyprctl/main.cpp b/hyprctl/main.cpp
index 77dd0d58..c05b5201 100644
--- a/hyprctl/main.cpp
+++ b/hyprctl/main.cpp
@@ -274,7 +274,6 @@ bool isNumber(const std::string& str, bool allowfloat) {
}
int main(int argc, char** argv) {
- int bflag = 0, sflag = 0, index, c;
bool parseArgs = true;
if (argc < 2) {
@@ -288,7 +287,7 @@ int main(int argc, char** argv) {
bool json = false;
std::string overrideInstance = "";
- for (auto i = 0; i < ARGS.size(); ++i) {
+ for (std::size_t i = 0; i < ARGS.size(); ++i) {
if (ARGS[i] == "--") {
// Stop parsing arguments after --
parseArgs = false;
@@ -342,7 +341,7 @@ int main(int argc, char** argv) {
const auto INSTANCES = instances();
- if (INSTANCENO < 0 || INSTANCENO >= INSTANCES.size()) {
+ if (INSTANCENO < 0 || static_cast<std::size_t>(INSTANCENO) >= INSTANCES.size()) {
std::cout << "no such instance\n";
return 1;
}