Browse Source

suppress warnings: comparison of integers of different signs: 'int64_t' (aka 'long') and 'uint64_t' (aka 'unsigned long') [-Wsign-compare] (#2063)

Brenton Bostick 2 years ago
parent
commit
64c2634b71
2 changed files with 10 additions and 0 deletions
  1. 5 0
      node/Bond.cpp
  2. 5 0
      node/Node.cpp

+ 5 - 0
node/Bond.cpp

@@ -20,6 +20,11 @@
 #include <string>
 #include <string>
 #include <cinttypes> // for PRId64, etc. macros
 #include <cinttypes> // for PRId64, etc. macros
 
 
+// FIXME: remove this suppression and actually fix warnings
+#ifdef __GNUC__
+#pragma GCC diagnostic ignored "-Wsign-compare"
+#endif
+
 namespace ZeroTier {
 namespace ZeroTier {
 
 
 static unsigned char s_freeRandomByteCounter = 0;
 static unsigned char s_freeRandomByteCounter = 0;

+ 5 - 0
node/Node.cpp

@@ -36,6 +36,11 @@
 #include "Trace.hpp"
 #include "Trace.hpp"
 #include "Metrics.hpp"
 #include "Metrics.hpp"
 
 
+// FIXME: remove this suppression and actually fix warnings
+#ifdef __GNUC__
+#pragma GCC diagnostic ignored "-Wsign-compare"
+#endif
+
 namespace ZeroTier {
 namespace ZeroTier {
 
 
 /****************************************************************************/
 /****************************************************************************/