mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-26 04:45:58 +01:00
hyprctl: Fix build warnings (#3821)
This commit is contained in:
parent
92cb44ddb2
commit
1e6e9b66a5
1 changed files with 2 additions and 3 deletions
|
@ -274,7 +274,6 @@ bool isNumber(const std::string& str, bool allowfloat) {
|
||||||
}
|
}
|
||||||
|
|
||||||
int main(int argc, char** argv) {
|
int main(int argc, char** argv) {
|
||||||
int bflag = 0, sflag = 0, index, c;
|
|
||||||
bool parseArgs = true;
|
bool parseArgs = true;
|
||||||
|
|
||||||
if (argc < 2) {
|
if (argc < 2) {
|
||||||
|
@ -288,7 +287,7 @@ int main(int argc, char** argv) {
|
||||||
bool json = false;
|
bool json = false;
|
||||||
std::string overrideInstance = "";
|
std::string overrideInstance = "";
|
||||||
|
|
||||||
for (auto i = 0; i < ARGS.size(); ++i) {
|
for (std::size_t i = 0; i < ARGS.size(); ++i) {
|
||||||
if (ARGS[i] == "--") {
|
if (ARGS[i] == "--") {
|
||||||
// Stop parsing arguments after --
|
// Stop parsing arguments after --
|
||||||
parseArgs = false;
|
parseArgs = false;
|
||||||
|
@ -342,7 +341,7 @@ int main(int argc, char** argv) {
|
||||||
|
|
||||||
const auto INSTANCES = instances();
|
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";
|
std::cout << "no such instance\n";
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue