diff options
| author | tb <> | 2025-05-31 15:31:40 +0000 |
|---|---|---|
| committer | tb <> | 2025-05-31 15:31:40 +0000 |
| commit | e63d066a5edd004346e44d220cb2babbbaed46bc (patch) | |
| tree | 40eff5561aa7b8cae618b6445b5cd41487a1dd43 /src | |
| parent | 2b916937c9e9b1172e15112ecc352c5eac2a0607 (diff) | |
| download | openbsd-e63d066a5edd004346e44d220cb2babbbaed46bc.tar.gz openbsd-e63d066a5edd004346e44d220cb2babbbaed46bc.tar.bz2 openbsd-e63d066a5edd004346e44d220cb2babbbaed46bc.zip | |
explicit_bzero test: don't redefine __SANITIZE_ADDRESS__
Silences an annoying warning when running tests with ASAN.
Diffstat (limited to 'src')
| -rw-r--r-- | src/regress/lib/libc/explicit_bzero/explicit_bzero.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/regress/lib/libc/explicit_bzero/explicit_bzero.c b/src/regress/lib/libc/explicit_bzero/explicit_bzero.c index 496bafb208..30c86290e8 100644 --- a/src/regress/lib/libc/explicit_bzero/explicit_bzero.c +++ b/src/regress/lib/libc/explicit_bzero/explicit_bzero.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: explicit_bzero.c,v 1.9 2022/02/10 08:39:32 tb Exp $ */ | 1 | /* $OpenBSD: explicit_bzero.c,v 1.10 2025/05/31 15:31:40 tb Exp $ */ |
| 2 | /* | 2 | /* |
| 3 | * Copyright (c) 2014 Google Inc. | 3 | * Copyright (c) 2014 Google Inc. |
| 4 | * | 4 | * |
| @@ -28,9 +28,11 @@ | |||
| 28 | 28 | ||
| 29 | #if defined(__has_feature) | 29 | #if defined(__has_feature) |
| 30 | #if __has_feature(address_sanitizer) | 30 | #if __has_feature(address_sanitizer) |
| 31 | #ifndef __SANITIZE_ADDRESS__ | ||
| 31 | #define __SANITIZE_ADDRESS__ | 32 | #define __SANITIZE_ADDRESS__ |
| 32 | #endif | 33 | #endif |
| 33 | #endif | 34 | #endif |
| 35 | #endif | ||
| 34 | #ifdef __SANITIZE_ADDRESS__ | 36 | #ifdef __SANITIZE_ADDRESS__ |
| 35 | #define ATTRIBUTE_NO_SANITIZE_ADDRESS __attribute__((no_sanitize_address)) | 37 | #define ATTRIBUTE_NO_SANITIZE_ADDRESS __attribute__((no_sanitize_address)) |
| 36 | #else | 38 | #else |
