PITimeMeasurer remove some API, add elapsedAndReset()

got rid off some warnings
This commit is contained in:
2025-01-17 11:49:24 +03:00
parent 82cda42e75
commit d01baffb0b
9 changed files with 57 additions and 58 deletions

View File

@@ -40,7 +40,7 @@ void setCommands() {
cmd_copydir = "cp -rf ";
ign_err_suffix = " 2> /dev/null";
# ifdef MAC_OS
qplatforms = "cocoa";
qplatforms = "cocoa";
# else
qplatforms = "xcb,wayland";
# endif
@@ -381,7 +381,8 @@ void copyWildcard(const PIString & from, const PIString & to) {
PIFile::FileInfo fi(from);
system(("robocopy \"" + fi.dir() + "\" \"" + to + "\" \"" + fi.name() + "\" /E /NJH /NJS /NP /NDL /NS /NC /NFL 1> NUL").data());
#else
system((cmd_copy + from + " \"" + to + "/\"" + cmd_suffix).data());
auto _r = system((cmd_copy + from + " \"" + to + "/\"" + cmd_suffix).data());
NO_UNUSED(_r);
#endif
}
@@ -797,13 +798,14 @@ int main(int argc, char * argv[]) {
if (need_cp) {
piCout << "copy" << l;
if (!fake) {
system((cmd_copy + "\"" + l + "\" \"" + out_dir + "\"" + cmd_suffix).data());
auto _r = system((cmd_copy + "\"" + l + "\" \"" + out_dir + "\"" + cmd_suffix).data());
if (strip.isNotEmpty()) {
if (!otool.isEmpty()) // Apple
system((strip + " -S \"" + out_dir + fi.name() + "\"").data());
_r = system((strip + " -S \"" + out_dir + fi.name() + "\"").data());
else
system((strip + " --strip-unneeded \"" + out_dir + fi.name() + "\"").data());
_r = system((strip + " --strip-unneeded \"" + out_dir + fi.name() + "\"").data());
}
NO_UNUSED(_r);
}
}
}
@@ -812,7 +814,10 @@ int main(int argc, char * argv[]) {
PIString fd = findLib(f);
if (!fd.isEmpty()) {
piCout << "copy framework" << f;
if (!fake) system((cmd_copydir + "\"" + fd + "\" \"" + out_dir + "\"" + cmd_suffix).data());
if (!fake) {
auto _r = system((cmd_copydir + "\"" + fd + "\" \"" + out_dir + "\"" + cmd_suffix).data());
NO_UNUSED(_r);
}
} else
miss_frameworks << f;
}