Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

FTBFS with GCC 16 #897

Copy link
Copy link
@P3p111n0

Description

@P3p111n0
Issue body actions

cdogs-sdl doesn't build with GCC 16 with -Werror:

[ 66s] /home/abuild/rpmbuild/BUILD/cdogs-sdl-2.4.0-build/cdogs-sdl-2.4.0/src/prep.c: In function ‘GameOptionsUpdate’:
[ 66s] /home/abuild/rpmbuild/BUILD/cdogs-sdl-2.4.0-build/cdogs-sdl-2.4.0/src/prep.c:726:33: error: variable ‘j’ set but not used [-Werror=unused-but-set-variable=]
[ 66s] 726 | for (int i = 0, j = 0; i < (int)gData->allowed.size; i++, j++)
[ 66s] | ^
[ 66s] cc1: all warnings being treated as errors

Full build log: https://build.opensuse.org/build/home:rguenther:plgrnd/openSUSE_Factory/x86_64/cdogs-sdl/_log

In GCC 16, pre/post increments no longer count as variable uses. If the variable is not used in any other way, it issues a warning, as seen above. If you don't want to deal with GCC 16 yourself, I can test fixes for you.

Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.