Skip to content

fix build failure with Gcc 16#498

Merged
lcoombe merged 1 commit into
BirolLab:masterfrom
emollier:gcc-16
Apr 30, 2026
Merged

fix build failure with Gcc 16#498
lcoombe merged 1 commit into
BirolLab:masterfrom
emollier:gcc-16

Conversation

@emollier
Copy link
Copy Markdown
Contributor

Starting with Gcc 16, unused but set variables have become error. This results in the following build failure in abyss.

Consensus.cpp:379:18: error: variable ‘numIgnored’ set but not used [-Werror=unused-but-set-variable=]
  379 |         unsigned numIgnored = 0;

This change drops occurrences of the numIgnored variable, since it is unused.

Bug-Debian: https://bugs.debian.org/1132058

Starting with Gcc 16, unused but set variables have become error.
This results in the following build failure in abyss.

	Consensus.cpp:379:18: error: variable ‘numIgnored’ set but not used [-Werror=unused-but-set-variable=]
	  379 |         unsigned numIgnored = 0;

This change drops occurrences of the numIgnored variable, since it is
unused.

Bug-Debian: https://bugs.debian.org/1132058
Signed-off-by: Étienne Mollier <emollier@debian.org>
Copy link
Copy Markdown
Contributor

@lcoombe lcoombe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me - thank you @emollier!

@lcoombe lcoombe merged commit 82ab619 into BirolLab:master Apr 30, 2026
9 checks passed
@emollier
Copy link
Copy Markdown
Contributor Author

emollier commented Apr 30, 2026 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants