Welcome! Log In Create A New Profile

Advanced

[PATCH] Configure: fix warnings in a few feature tests

Piotr Sikora via nginx-devel
May 02, 2024 05:34PM
# HG changeset patch
# User Piotr Sikora <piotr@aviatrix.com>
# Date 1714589586 0
# Wed May 01 18:53:06 2024 +0000
# Node ID c083cd8ead811426c6f7bd7c4ab58a413d80be52
# Parent 49dce50fad40bf09db81ca2a35983ecd7b740e43
Configure: fix warnings in a few feature tests.

Signed-off-by: Piotr Sikora <piotr@aviatrix.com>

diff -r 49dce50fad40 -r c083cd8ead81 auto/unix
--- a/auto/unix Tue Apr 16 18:29:59 2024 +0400
+++ b/auto/unix Wed May 01 18:53:06 2024 +0000
@@ -731,7 +731,7 @@
ngx_feature_incs=
ngx_feature_path=
ngx_feature_libs=
-ngx_feature_test="char buf[1]; ssize_t n; n = pwrite(1, buf, 1, 0);
+ngx_feature_test="const char buf[1] = \"\"; ssize_t n; n = pwrite(1, buf, 1, 0);
if (n == -1) return 1"
. auto/feature

@@ -760,7 +760,7 @@
ngx_feature_incs='#include <string.h>'
ngx_feature_path=
ngx_feature_libs=
-ngx_feature_test="char *p; p = strerrordesc_np(0);
+ngx_feature_test="const char *p; p = strerrordesc_np(0);
if (p == NULL) return 1"
. auto/feature

_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
https://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

[PATCH] Configure: fix warnings in a few feature tests

Piotr Sikora via nginx-devel 149 May 02, 2024 05:34PM



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

Online Users

Guests: 260
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready