From: Viktor Szakats Date: Wed, 30 Apr 2025 16:32:02 +0000 (+0200) Subject: mkhelp: fix to not generate a line-ending space in some cases X-Git-Tag: curl-8_14_0~166 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=68369a3198d22acfd5e50bb9054c1c533fdd1cad;p=thirdparty%2Fcurl.git mkhelp: fix to not generate a line-ending space in some cases Fixing gcc-15: ``` bld/src/tool_hugehelp.c:11739:1: error: trailing whitespace [-Werror=trailing-whitespace=] ``` Ref: https://github.com/curl/curl/actions/runs/14758743743/job/41433794102?pr=17239#step:10:32 Closes #17240 --- diff --git a/src/mkhelp.pl b/src/mkhelp.pl index 7219aef992..7d9e792ac3 100755 --- a/src/mkhelp.pl +++ b/src/mkhelp.pl @@ -82,12 +82,14 @@ HEAD ; my $c=0; - print " "; for(split(//, $gzippedContent)) { my $num=ord($_); + if(!($c % 12)) { + print " "; + } printf(" 0x%02x,", 0+$num); if(!(++$c % 12)) { - print "\n "; + print "\n"; } } print "\n};\n";