diff options
| author | gingerBill <gingerBill@users.noreply.github.com> | 2026-01-15 18:06:25 +0000 |
|---|---|---|
| committer | gingerBill <gingerBill@users.noreply.github.com> | 2026-01-15 18:06:25 +0000 |
| commit | f4a7e0b279043357a550c26f1972835f9f5688a1 (patch) | |
| tree | 57b326a57033ed5a73c924bc43c7b9316ad123bd /src/checker.cpp | |
| parent | faacac33ab6c03266e2c1407f027be811e97e093 (diff) | |
Add `@(no_sanitize_thread)`
Diffstat (limited to 'src/checker.cpp')
| -rw-r--r-- | src/checker.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/checker.cpp b/src/checker.cpp index ab3ba50dd..453f3e241 100644 --- a/src/checker.cpp +++ b/src/checker.cpp @@ -3990,6 +3990,12 @@ gb_internal DECL_ATTRIBUTE_PROC(proc_decl_attribute) { } ac->no_sanitize_memory = true; return true; + } else if (name == "no_sanitize_thread") { + if (value != nullptr) { + error(value, "'%.*s' expects no parameter", LIT(name)); + } + ac->no_sanitize_thread = true; + return true; } return false; } |