]> vaikene.ee Git - evaf/blobdiff - src/libs/Common/logger.cpp
Warning fixes and copyright update.
[evaf] / src / libs / Common / logger.cpp
index 870af5f0347d3c3e5528b01fd056b45131051f62..94d9fa9eb9e7ea70136ed359960376a9ce844c68 100644 (file)
@@ -3,7 +3,7 @@
  * @brief iLogger interface implementation
  * @author Enar Vaikene
  *
- * Copyright (c) 2011-2012 Enar Vaikene
+ * Copyright (c) 2011-2019 Enar Vaikene
  *
  * This file is part of the eVaf C++ cross-platform application development framework.
  *
@@ -42,7 +42,7 @@
 
 [[noreturn]] void eVaf::Common::Internal::defFatalMsgHandler(QString const & msg, QString const & source, QString const & where)
 {
-    Q_UNUSED(source);
+    Q_UNUSED(source)
 
     fprintf(stderr, "FATAL ERROR: %s (occurred in %s)\n", qPrintable(msg), qPrintable(where));
 
@@ -443,7 +443,7 @@ QString Logger::printf(char const * const fmt, ...) const
     va_end(ap);
 #else
     ::va_start(ap, fmt);
-    if (::vasprintf(&str, fmt, ap)) {}; // IF is needed to avoid the compiler warning
+    if (::vasprintf(&str, fmt, ap)) {} // IF is needed to avoid the compiler warning
     ::va_end(ap);
 #endif