]> git.ipfire.org Git - thirdparty/gcc.git/commit
[PR middle-end/117263] Avoid unused-but-set warning in genautomata
authorDario Gjorgjevski <dario.gjorgjevski@gmail.com>
Sun, 9 Feb 2025 16:16:31 +0000 (09:16 -0700)
committerJeff Law <jlaw@ventanamicro.com>
Sun, 9 Feb 2025 16:16:31 +0000 (09:16 -0700)
commitb81bb3ed216213fdaba82addae9fc34619ad6ec7
tree136902759e15d3f647fc3a89d780246bb52447cb
parenta8d0a2dd6565ea15ce79d8af90f2671cbf9359c7
[PR middle-end/117263] Avoid unused-but-set warning in genautomata

This is a trivial bug where a user wanted to define NDEBUG when building
genautomata, presumably trying to debug its behavior.  This resulted in a
unused-but-set warning which caused the build to fail.

Dario included the trivial fixes in the PR which I put through the usual
bootstrap & regression test as well as compiling genautomata with NDEBUG.

Pushing to the trunk.

PR middle-end/117263
gcc/
* genautomata.cc (output_statistics): Avoid set but unnused warnings
when compiling with NDEBUG.
gcc/genautomata.cc