We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 936ddb8 commit d86254dCopy full SHA for d86254d
src/njs/src/njsConnection.cpp
@@ -73,6 +73,14 @@ Nan::Persistent<FunctionTemplate> Connection::connectionTemplate_s;
73
74
#define NJS_SIZE_T_MAX std::numeric_limits<std::size_t>::max()
75
76
+// Temporarily suppress compile warnings that certain NJS_SIZE_T_OVERFLOW
77
+// calls can never overflow, and are therefore redundant.
78
+// These are seen on OS X.
79
+#if defined(__clang__)
80
+#pragma clang diagnostic ignored "-Wtautological-constant-out-of-range-compare"
81
+#endif
82
+// End temporary patch
83
+
84
#define NJS_SIZE_T_OVERFLOW(maxSize,maxRows) \
85
( ( ( maxSize != 0 ) && \
86
( ( ( NJS_SIZE_T_MAX ) / ( (size_t)maxSize ) ) < (maxRows) ) ) ? 1 : 0) \
0 commit comments