Summary: | dev-util/yacc-1.9.1-r7 - closure.c: error: type specifier missing, defaults to int; ISO C99 and | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Toralf Förster <toralf> |
Component: | Current packages | Assignee: | No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it <maintainer-needed> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | seal331gentoo |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | fixed in 1.9.1-r8 | ||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 870412 | ||
Attachments: |
emerge-info.txt
dev-util:yacc-1.9.1-r6:20221005-174305.log emerge-history.txt environment etc.portage.tar.bz2 temp.tar.bz2 C99 patch |
Description
Toralf Förster
![]() Created attachment 821569 [details]
emerge-info.txt
Created attachment 821572 [details]
dev-util:yacc-1.9.1-r6:20221005-174305.log
Created attachment 821575 [details]
emerge-history.txt
Created attachment 821578 [details]
environment
Created attachment 821581 [details]
etc.portage.tar.bz2
Created attachment 821584 [details]
temp.tar.bz2
*** Bug 882297 has been marked as a duplicate of this bug. *** gcc14_tinderbox has reproduced this issue with version 1.9.1-r7 - Updating summary. Created attachment 898709 [details, diff]
C99 patch
Wrote a patch to fix this and quite likely #730802. Purely converting K&R declarations to ANSI C, this was easy. Tested with GCC 13 + C99 porting flags, for me gets rid of all warnings and errors except 3 "ignoring return value of mkstemp" warnings.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9e9f43129927504a22efd67e1ff1320d55d84a56 commit 9e9f43129927504a22efd67e1ff1320d55d84a56 Author: Arthur Zamarin <arthurzam@gentoo.org> AuthorDate: 2024-10-20 17:29:14 +0000 Commit: Arthur Zamarin <arthurzam@gentoo.org> CommitDate: 2024-10-20 17:29:48 +0000 dev-util/yacc: fix modern C Closes: https://bugs.gentoo.org/875506 Closes: https://bugs.gentoo.org/730802 Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org> dev-util/yacc/Manifest | 1 + dev-util/yacc/{yacc-1.9.1-r7.ebuild => yacc-1.9.1-r8.ebuild} | 10 ++++++++-- 2 files changed, 9 insertions(+), 2 deletions(-) |