Skip to content
This repository has been archived by the owner on Feb 8, 2018. It is now read-only.

Commented out parameter name for copy-constructor for secure_vector #44

Merged
merged 1 commit into from Jan 5, 2016
Merged

Commented out parameter name for copy-constructor for secure_vector #44

merged 1 commit into from Jan 5, 2016

Conversation

bobsummerwill
Copy link
Contributor

Commented out parameter name for copy-constructor for secure_vector<> class to work around GCC bug which is marked as fixed in GCC-4.9.0. The compiler issues a warning about the named parameter not being used within synthesized code. The warning is obviously not very useful. The parameter is used, but the name is not used, because the code is synthesized.

This is a workaround for the warning, which breaks the build on certain systems because warnings-as-errors is enabled.

http://stackoverflow.com/questions/12793412/defaulted-copy-constructor-and-copy-assignment-assignment-operator-giving-strang

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57211

… class to work around GCC bug which is marked as fixed in GCC-4.9.0. The compiler issues a warning about the named parameter not being used within synthesized code. The warning is obviously not very useful. The parameter *is* used, but the name is not used, because the code is synthesized.

This is a workaround for the warning, which breaks the build on certain systems because warnings-as-errors is enabled.

    http://stackoverflow.com/questions/12793412/defaulted-copy-constructor-and-copy-assignment-assignment-operator-giving-strang
    https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57211
@chriseth
Copy link
Contributor

chriseth commented Jan 5, 2016

Thanks a lot!

chriseth added a commit that referenced this pull request Jan 5, 2016
Commented out parameter name for copy-constructor for secure_vector
@chriseth chriseth merged commit 41d7727 into ethereum:develop Jan 5, 2016
@bobsummerwill
Copy link
Contributor Author

Np. Easy fix!
Hit this with GCC 4.6 for armel cross-compilation on Ubuntu 14.04.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
2 participants