From 002765c0e06a8514d0baf3bbbf921eb509859393 Mon Sep 17 00:00:00 2001 From: Niels Lohmann Date: Thu, 21 Jul 2022 14:57:56 +0200 Subject: [PATCH] :rotating_light: suppress UBSAN warning --- tests/src/unit-deserialization.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/src/unit-deserialization.cpp b/tests/src/unit-deserialization.cpp index f716b1dcd..9454092d9 100644 --- a/tests/src/unit-deserialization.cpp +++ b/tests/src/unit-deserialization.cpp @@ -171,7 +171,7 @@ struct SaxEventLoggerExitAfterStartArray : public SaxEventLogger // be done with a function attribute. See // https://clang.llvm.org/docs/UndefinedBehaviorSanitizer.html#disabling-instrumentation-with-attribute-no-sanitize-undefined #if defined(__clang__) -__attribute__((no_sanitize("undefined"))) + __attribute__((no_sanitize("undefined"))) #endif void test_file_exception() {