]> vaikene.ee Git - evaf/blobdiff - src/main/CLI/main.cpp
Minor changes
[evaf] / src / main / CLI / main.cpp
index 691db7a3f63cf6da24cc68b323c0fe13085d95e2..0be3f3697de7522f1fe8e985efbc20fa0a994ba2 100644 (file)
@@ -92,13 +92,12 @@ static void messageOutput(QtMsgType type, QMessageLogContext const &, QString co
  * If the critical error message is shown, then the user has an option to ignore the error. In this
  * case the application is not terminated.
  */
-static void fatalMsgHandler(QString const & msg, QString const & source, QString const & where)
+[[noreturn]] static void fatalMsgHandler(QString const & msg, QString const & source, QString const & where)
 {
-#ifdef Q_OS_LINUX
-    abort();
-#else
+    Q_UNUSED(msg);
+    Q_UNUSED(source);
+    Q_UNUSED(where);
     exit(1);
-#endif
 }
 
 } // namespace eVaf::CLI::Internal
@@ -266,7 +265,7 @@ int main(int argc, char ** argv)
 
     // The main run loop
     bool quit = false;
-    int rval;
+    int rval = 0;
     while (!quit) {
 
         EVAF_INFO("%s is starting up", VER_MODULE_NAME_STR);