浏览代码

HPCC-25641 Fix some minor warnings from windows build

Signed-off-by: Gavin Halliday <gavin.halliday@lexisnexis.com>
Gavin Halliday 4 年之前
父节点
当前提交
4def2dddbb
共有 3 个文件被更改,包括 6 次插入2 次删除
  1. 1 1
      esp/logging/logginglib/logconfigptree.hpp
  2. 1 1
      system/jlib/jstats.cpp
  3. 4 0
      system/mp/mpcomm.cpp

+ 1 - 1
esp/logging/logginglib/logconfigptree.hpp

@@ -60,7 +60,7 @@ namespace LogConfigPTree
                 if (defaultValue > std::numeric_limits<value_t>::max())
                     report(true);
             }
-            else
+            else if (!std::is_same<value_t, bool>()) // ignore boolean
             {
                 if (defaultValue < 0 || defaultValue > std::numeric_limits<value_t>::max())
                     report(false);

+ 1 - 1
system/jlib/jstats.cpp

@@ -420,7 +420,7 @@ public:
         {
             // Use default locale if the specified moneyLocale is invalid
             // (avoids difficult to track down crashes)
-            OERRLOG("Locale '%s' is not installed", localestr.str());
+            OERRLOG("Locale '%s' is not installed [%s]", localestr.str(), e.what());
             loc = new std::locale("");
         }
         return loc;

+ 4 - 0
system/mp/mpcomm.cpp

@@ -86,7 +86,11 @@
 #define _TRACING
 
 static  CriticalSection childprocesssect;
+#ifdef _WIN32
+static  Unsigned64Array childprocesslist;
+#else
 static  UnsignedArray childprocesslist;
+#endif
 
 // IPv6 TBD