Skip to content

[BUG] FTBFS with GCC 16 #2155

@P3p111n0

Description

@P3p111n0

Benchmark doesn't build with GCC 16.

System
Which OS, compiler, and compiler version are you using:

  • OS: OpenSUSE Tumbleweed
  • Compiler and version: GCC 16

To reproduce
Build with GCC 16 with the flags found in the build log:
https://build.opensuse.org/build/home:jmelcr/home_rguenther_plgrnd_openSUSE_Factory/x86_64/benchmark/_log

The build fails because GCC 16 changed the way it warns about unused variables. Pre/post increments no longer count as uses, hence the errors.

GCC 16 has not been released yet. In case you don't want to build GCC 16 from source (likely), I can test the changes for you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions