diff --git a/file/include/util.h b/file/include/util.h index e3480d1..c3add92 100644 --- a/file/include/util.h +++ b/file/include/util.h @@ -276,6 +276,8 @@ namespace util } #pragma clang diagnostic pop #endif +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wunused-parameter" static inline void setThreadName(const std::string &name) { #ifdef APL @@ -295,6 +297,7 @@ namespace util pthread_setname_np(pthread_self(), name.substr(0, 15).c_str()); #endif } +#pragma clang diagnostic pop } // namespace util diff --git a/xplugin/include/main.h b/xplugin/include/main.h index 7079f0e..d6f5934 100644 --- a/xplugin/include/main.h +++ b/xplugin/include/main.h @@ -1,6 +1,11 @@ #ifndef GERMANAIRLINESVA_GACONNECTOR_XPLUGIN_MAIN_H #define GERMANAIRLINESVA_GACONNECTOR_XPLUGIN_MAIN_H +#include "config.h" +#include "makeRwysXP.h" +#include "simulatorDatabase.h" +#include "websocket.h" + #include "XPLM/XPLMDataAccess.h" #include "XPLM/XPLMGraphics.h" #include "XPLM/XPLMPlanes.h" @@ -8,11 +13,6 @@ #include "XPLM/XPLMProcessing.h" #include "XPLM/XPLMUtilities.h" -#include "config.h" -#include "makeRwysXP.h" -#include "simulatorDatabase.h" -#include "websocket.h" - #include #include #include diff --git a/xplugin/makeRwysXP.cpp b/xplugin/makeRwysXP.cpp index 1c21d22..f87b23e 100644 --- a/xplugin/makeRwysXP.cpp +++ b/xplugin/makeRwysXP.cpp @@ -52,6 +52,9 @@ int scan(const char *defaultFile, } } + logfile << std::endl + << " Total airports: " << airports.size() << std::endl; + custom.close(); logfile.close(); return 0;