Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

removed definition of refreshed bool #8673

Closed
wants to merge 1 commit into from
Closed

Conversation

cjac
Copy link

@cjac cjac commented Dec 11, 2022

/usr/src/git/salsa/cryptocoin-team/monero/src/wallet/wallet2.cpp:3427:8: warning: variable ‘refreshed’ set but not used [-Wunused-but-set-variable]
3427 | bool refreshed = false;

Fails to build from source.

@cjac cjac changed the title removed unused refreshed bool removed definition of refreshed bool Dec 11, 2022
@selsta
Copy link
Collaborator

selsta commented Dec 11, 2022

It should not fail to build from source due to an unused variable, unless you changed other things.

@cjac
Copy link
Author

cjac commented Dec 11, 2022

18:29 < cjac> selsta: the FTBFS came from particularly strict gcc flags
18:29 < cjac> this is the debian policy, so it's keeping debian from building. I
could commit this patch to debian, but I wanted to check with you
folks first.
18:30 < cjac> https://paste.debian.net/1263691/

@cjac
Copy link
Author

cjac commented Dec 11, 2022

patch squashed so I can offer it to debian package maintainers, should this PR not be merged

@UkoeHB
Copy link
Contributor

UkoeHB commented Dec 11, 2022

This issue has appeared before, it is an intentional Chesterton's fence that @moneromooo-monero left in there.

@jeffro256
Copy link
Contributor

See conversation started here: #8359 (comment)

@cjac
Copy link
Author

cjac commented Dec 12, 2022

patch offered to debian maintainers:

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1025965

@plowsof
Copy link
Contributor

plowsof commented Dec 21, 2022

An update from the Debian maintainers: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1025927

There is no such compiler option added (-Werror?) and the package builds fine.
Please fix your build environment.

please close

@selsta
Copy link
Collaborator

selsta commented Dec 21, 2022

Closing since we don't add this security flag anywhere and it seems debian also doesn't.

@selsta selsta closed this Dec 21, 2022
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.

5 participants