Skip to content

Remove unused hasher function#575

Merged
keith merged 1 commit intobazelbuild:mainfrom
jpc-sf:fix/574-unused-result-warning
Apr 21, 2026
Merged

Remove unused hasher function#575
keith merged 1 commit intobazelbuild:mainfrom
jpc-sf:fix/574-unused-result-warning

Conversation

@jpc-sf
Copy link
Copy Markdown
Contributor

@jpc-sf jpc-sf commented Apr 21, 2026

This function is marked with [[nodiscard]], which generates a warning because the result is unused.

Issue: Compiler warning when compiling crosstool/libtool.cc: [-Wunused-result] #574 #574

This function is marked with [[nodiscard]], which generates a warning
because the result is unused.

Issue: Compiler warning when compiling crosstool/libtool.cc: [-Wunused-result] bazelbuild#574 bazelbuild#574
Copy link
Copy Markdown
Member

@keith keith left a comment

Choose a reason for hiding this comment

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

thanks! just to note you must be on an internal SDK or something, it doesn't seem like this is marked [[nodiscard]] yet.

@keith keith merged commit e052fd4 into bazelbuild:main Apr 21, 2026
14 checks passed
@jpc-sf jpc-sf deleted the fix/574-unused-result-warning branch April 21, 2026 20:46
@jpc-sf
Copy link
Copy Markdown
Contributor Author

jpc-sf commented Apr 21, 2026

my pleasure. yeah, it looks like some STL implementations add [[nodiscard]] to some functions, even though the standard declaration doesn't have it. afaict, this is permitted by the standard.

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