diff options
| author | Edgar Bonet <bonet@grenoble.cnrs.fr> | 2024-05-16 11:15:10 +0200 |
|---|---|---|
| committer | Edgar Bonet <bonet@grenoble.cnrs.fr> | 2024-05-16 11:15:10 +0200 |
| commit | a728869cd10924b991b22c5b50a9317226499271 (patch) | |
| tree | 3d80b183e88fde255fdc6ab89df843815d31d234 | |
| parent | ee561abfdfebc6de622cf540a49237c745a2e209 (diff) | |
| download | nginx-a728869cd10924b991b22c5b50a9317226499271.tar.gz nginx-a728869cd10924b991b22c5b50a9317226499271.tar.bz2 | |
Configure: fixed building libatomic test.
Using "long *" instead of "AO_t *" leads either to -Wincompatible-pointer-types
or -Wpointer-sign warnings, depending on whether long and size_t are compatible
types (e.g., ILP32 versus LP64 data models). Notably, -Wpointer-sign warnings
are enabled by default in Clang only, and -Wincompatible-pointer-types is an
error starting from GCC 14.
Signed-off-by: Edgar Bonet <bonet@grenoble.cnrs.fr>
| -rw-r--r-- | auto/lib/libatomic/conf | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/auto/lib/libatomic/conf b/auto/lib/libatomic/conf index d1e484ab3..8c8cb438b 100644 --- a/auto/lib/libatomic/conf +++ b/auto/lib/libatomic/conf @@ -19,7 +19,7 @@ else #include <atomic_ops.h>" ngx_feature_path= ngx_feature_libs="-latomic_ops" - ngx_feature_test="long n = 0; + ngx_feature_test="AO_t n = 0; if (!AO_compare_and_swap(&n, 0, 1)) return 1; if (AO_fetch_and_add(&n, 1) != 1) |
