From c93261586d691c5d5394cd26720723300f3b7d1f Mon Sep 17 00:00:00 2001 From: Ross Nicoll Date: Fri, 18 Jun 2021 08:27:39 +0100 Subject: Ignore unsigned overflow warnings Ignore unsigned overflow warnings in: * Scrypt hash calculation as this is an intentional part of how they behave. * Calculating block subsidy as the Mersenne Twister intentionally expects this behaviour. --- src/dogecoin.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/dogecoin.cpp') diff --git a/src/dogecoin.cpp b/src/dogecoin.cpp index 31cd69bfc..3bc6fb932 100644 --- a/src/dogecoin.cpp +++ b/src/dogecoin.cpp @@ -9,6 +9,9 @@ #include #include +#ifdef __clang__ +__attribute__((no_sanitize("unsigned-integer-overflow"))) +#endif // __clang__ int static generateMTRandom(unsigned int s, int range) { boost::mt19937 gen(s); -- cgit v1.2.3