Fix log spam from unknown sanitizer
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Deukhoofd 2022-03-23 14:34:52 +01:00
parent 47272b0206
commit 464b3f3ac1
Signed by: Deukhoofd
GPG Key ID: F63E044490819F6F
1 changed files with 5 additions and 0 deletions

View File

@ -3,6 +3,10 @@
// PCG uses unsigned shifts, and overflows a lot. Disable the sanitizer for that.
#if defined(__clang__)
// If we don't ignore this diagnostic, and the sanitizer is not known yet in the clang version, this spams tens of thousands
// of warnings. Hence we disable it for a bit.
#pragma GCC diagnostic push
#pragma clang diagnostic ignored "-Wunknown-sanitizers"
#pragma clang attribute push(__attribute__((no_sanitize("unsigned-shift-base", "unsigned-integer-overflow"))), \
apply_to = function)
#endif
@ -11,6 +15,7 @@
#if defined(__clang__)
#pragma clang attribute pop
#pragma clang diagnostic pop
#endif
#include <chrono>