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

GCC 9.1 fixes #5613

Merged
merged 3 commits into from
Jun 11, 2019
Merged

GCC 9.1 fixes #5613

merged 3 commits into from
Jun 11, 2019

Conversation

moneromooo-monero
Copy link
Collaborator

No description provided.

GCC wants operator= aand copy ctor to be both defined, or neither
It was removed, but it still accepted by the compiler, which warns
for every file
@@ -134,10 +134,11 @@ namespace boost
a & port;
a & length;

if (length > net::tor_address::buffer_size())
const size_t buffer_size = net::tor_address::buffer_size();
if (length > buffer_size)
Copy link
Collaborator

Choose a reason for hiding this comment

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

For reference, we reported this bug upstream https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90825

@luigi1111 luigi1111 merged commit e284889 into monero-project:master Jun 11, 2019
luigi1111 added a commit that referenced this pull request Jun 11, 2019
2cbe756 p2p: fix GCC 9.1 crash (moneromooo-monero)
35c20c4 Fix GCC 9.1 build warnings (moneromooo-monero)
e284889 cmake: do not use -mmitigate-rop on GCC >= 9.1 (moneromooo-monero)
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.

3 participants