Welcome! Log In Create A New Profile

Advanced

[nginx] Configure: fixed building libatomic test.

Sergey Kandaurov
May 29, 2024 11:02AM
details: https://hg.nginx.org/nginx/rev/31fe21f04103
branches: stable-1.26
changeset: 9259:31fe21f04103
user: Edgar Bonet <bonet@grenoble.cnrs.fr>
date: Thu May 16 11:15:10 2024 +0200
description:
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>

diffstat:

auto/lib/libatomic/conf | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 73770db03e73 -r 31fe21f04103 auto/lib/libatomic/conf
--- a/auto/lib/libatomic/conf Tue May 28 17:14:08 2024 +0400
+++ b/auto/lib/libatomic/conf Thu May 16 11:15:10 2024 +0200
@@ -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)
_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
https://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

[nginx] Configure: fixed building libatomic test.

Sergey Kandaurov 191 May 29, 2024 11:02AM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 132
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready