Warnings: various fixes (#6582)

* Warnings: various fixes

* Use std::ignore
This commit is contained in:
Vovodroid
2024-09-07 13:16:50 +03:00
committed by GitHub
parent 1afc1372bc
commit 044a1c4fc5
7 changed files with 17 additions and 14 deletions

View File

@@ -446,7 +446,7 @@ void PrintJob::process(Ctl &ctl)
std::string curr_job_id;
json job_info_j;
try {
job_info_j.parse(job_info);
std::ignore = job_info_j.parse(job_info);
if (job_info_j.contains("job_id")) {
curr_job_id = job_info_j["job_id"].get<std::string>();
}