Bug 1228356

Summary: Package rubygem-rdiscount does not build with gcc 14 because of new errors (that were previously warnings)
Product: [openSUSE] openSUSE Tumbleweed Reporter: Martin Jambor <mjambor>
Component: RubyAssignee: Ruby Devel <ruby-devel>
Status: RESOLVED DUPLICATE QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None    
Version: Current   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Bug Depends on:    
Bug Blocks: 1220571    

Description Martin Jambor 2024-07-26 12:17:40 UTC
Package rubygem-rdiscount fails to build with GCC 14 because of
various C99 violations which previously just generated warning s but
which cause errors with GCC 14 by default.  For more information see
https://gcc.gnu.org/gcc-14/porting_to.html and meta bug #1220571.

BuildService failures are available online at:
https://build.opensuse.org/package/live_build_log/openSUSE:Factory:Staging:Gcc7/rubygem-rdiscount/standard/x86_64

The build with GCC 14 can now be tried locally with:
osc build --clean --alternative-project home:rguenther:nextgcc

The (first) error that stops the build is:

[   10s] gethopt.c:48:1: error: type of ‘val’ defaults to ‘int’ [-Wimplicit-int]
[   10s] gethopt.c: In function ‘gethopt’:
[   10s] gethopt.c:59:1: warning: old-style function definition [-Wold-style-definition]
[   10s]    59 | gethopt(ctx, opts, nropts)
[   10s]       | ^~~~~~~
Comment 1 Martin Jambor 2024-07-26 12:30:53 UTC
Apparently I have already filed a bug for this.

*** This bug has been marked as a duplicate of bug 1225923 ***