From 1a1a20587ec2e2cf606585410992e59dea69f8aa Mon Sep 17 00:00:00 2001 From: Alexander Tokmakov Date: Fri, 7 Oct 2022 21:26:09 +0300 Subject: [PATCH] Update defines.h --- base/base/defines.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base/base/defines.h b/base/base/defines.h index c9b6cfed4a4..24e6f9e9eaa 100644 --- a/base/base/defines.h +++ b/base/base/defines.h @@ -142,7 +142,7 @@ # define TSA_NO_THREAD_SAFETY_ANALYSIS __attribute__((no_thread_safety_analysis)) /// disable TSA for a function /// Macros for suppressing TSA warnings for specific reads/writes (instead of suppressing it for the whole function) -/// They use a lambda function to apply function attribute to a single statement. This enable us to supress warnings locally instead of +/// They use a lambda function to apply function attribute to a single statement. This enable us to suppress warnings locally instead of /// suppressing them in the whole function /// Consider adding a comment when using these macros. # define TSA_SUPPRESS_WARNING_FOR_READ(x) ([&]() TSA_NO_THREAD_SAFETY_ANALYSIS -> const auto & { return (x); }())