From b193519514038d1614e55bf6dcfbbb400470f6a3 Mon Sep 17 00:00:00 2001 From: Brenton Bostick Date: Wed, 19 Jul 2023 12:23:57 -0400 Subject: [PATCH] suppress warnings: comparison of integers of different signs: 'int64_t' (aka 'long') and 'uint64_t' (aka 'unsigned long') [-Wsign-compare] --- node/Bond.cpp | 5 +++++ node/Node.cpp | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/node/Bond.cpp b/node/Bond.cpp index 21a8a5638..4c43ad505 100644 --- a/node/Bond.cpp +++ b/node/Bond.cpp @@ -20,6 +20,11 @@ #include #include // for PRId64, etc. macros +// FIXME: remove this suppression and actually fix warnings +#ifdef __GNUC__ +#pragma GCC diagnostic ignored "-Wsign-compare" +#endif + namespace ZeroTier { static unsigned char s_freeRandomByteCounter = 0; diff --git a/node/Node.cpp b/node/Node.cpp index 9b748c6d0..d50905e45 100644 --- a/node/Node.cpp +++ b/node/Node.cpp @@ -36,6 +36,11 @@ #include "Trace.hpp" #include "Metrics.hpp" +// FIXME: remove this suppression and actually fix warnings +#ifdef __GNUC__ +#pragma GCC diagnostic ignored "-Wsign-compare" +#endif + namespace ZeroTier { /****************************************************************************/