From 64c2634b7103c5ea6cc717bf079dd8b533a56af1 Mon Sep 17 00:00:00 2001 From: Brenton Bostick Date: Thu, 20 Jul 2023 10:37:50 -0500 Subject: [PATCH] suppress warnings: comparison of integers of different signs: 'int64_t' (aka 'long') and 'uint64_t' (aka 'unsigned long') [-Wsign-compare] (#2063) --- 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 { /****************************************************************************/