summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAndrew Clayton <a.clayton@nginx.com>2025-03-18 05:44:54 +0000
committerAndrew Clayton <a.clayton@nginx.com>2025-03-20 15:28:33 +0000
commitec1608b4cc1e9926e2da9f5591e883e4d42cc2fc (patch)
tree9804e7552c1d2005c2dd25dbad3bfc1493ec213a
parentd9c2fd793fe1e8c8fbfd7aec9af3482fa5f0dacc (diff)
downloadunit-ec1608b4cc1e9926e2da9f5591e883e4d42cc2fc.tar.gz
unit-ec1608b4cc1e9926e2da9f5591e883e4d42cc2fc.tar.bz2
auto/cc: gcc: Don't disable -Wunterminated-string-initialization
Now that we are able to use the "nonstring" variable attribute to quell this warning, we no longer need to disable it. The good thing is there was never a released version of GCC where the warning couldn't be quelled by the attribute. Fixes: 150378224 ("Fix build with GCC 15") Cc: Alejandro Colomar <alx@kernel.org> Reviewed-by: Alejandro Colomar <alx@kernel.org> Signed-off-by: Andrew Clayton <a.clayton@nginx.com>
-rw-r--r--auto/cc/test4
1 files changed, 0 insertions, 4 deletions
diff --git a/auto/cc/test b/auto/cc/test
index a8c176b2..ac4d5f33 100644
--- a/auto/cc/test
+++ b/auto/cc/test
@@ -93,10 +93,6 @@ case $NXT_CC_NAME in
NXT_CFLAGS="$NXT_CFLAGS -Wmissing-prototypes"
- # Disable Wunterminated-string-initialization temporarily.
- # See <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117178#c21>
- NXT_CFLAGS="$NXT_CFLAGS -Wno-unterminated-string-initialization"
-
# Stop on warning.
NXT_CFLAGS="$NXT_CFLAGS -Werror"