--- Begin Message ---
Subject: |
Re: grep-3.6 released [stable] |
Date: |
Mon, 09 Nov 2020 17:12:54 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) |
grep 3.6 fails to build:
test-nl_langinfo-mt.c: In function 'threadN_func':
test-nl_langinfo-mt.c:185:1: error: no return statement in function returning
non-void [-Werror=return-type]
185 | }
| ^
cc1: some warnings being treated as errors
make[4]: *** [Makefile:4221: test-nl_langinfo-mt.o] Error 1
Andreas.
--
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."
--- End Message ---
--- Begin Message ---
Subject: |
Re: bug#44535: grep-3.6 released [stable] |
Date: |
Sat, 21 Nov 2020 18:15:20 -0800 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.3.2 |
On 11/12/20 11:39 PM, Paul Eggert wrote:
We have dueling compilers here, as Sun C complains if the return statements are
present[1], whereas gcc -Wreturn-type complains if they're absent. Since the
return statements are clearly bogus and unnecessary I'm inclined to continue to
omit them.
I looked into this some more, and found out that it's a known GCC bug. I
installed the attached patch into Gnulib to work around the bug. Thanks for
reporting the problem.
0001-nl_langinfo-tests-work-around-GCC-bug-44511.patch
Description: Text Data
--- End Message ---