all: fix gcc warnings and lints

This commit is contained in:
outfoxxed 2025-10-04 13:22:17 -07:00
parent 9bb2c043ae
commit c5c438f1cd
No known key found for this signature in database
GPG key ID: 4C88A185FB89301E
11 changed files with 42 additions and 16 deletions

View file

@ -32,7 +32,10 @@ void checkCrashRelaunch(char** argv, QCoreApplication* coreApplication) {
auto lastInfoFd = lastInfoFdStr.toInt();
QFile file;
file.open(lastInfoFd, QFile::ReadOnly, QFile::AutoCloseHandle);
if (!file.open(lastInfoFd, QFile::ReadOnly, QFile::AutoCloseHandle)) {
qFatal() << "Failed to open crash info fd. Cannot restart.";
}
file.seek(0);
auto ds = QDataStream(&file);