-
Notifications
You must be signed in to change notification settings - Fork 1k
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
-Wunused-parameter warnings when cross-compiling for riscv64-linux-gnu #1023
Comments
@hebasto Is valgrind support enabled? See output of see https://github.com/bitcoin-core/secp256k1/blob/master/src/secp256k1.c#L229 |
Yes.
i.e., |
Hm, well, it's defined in Hm I don't know. We could suppress the warning but it would be nice if we could output have a more meaningful warning, or let configure detect that anyway valgrind support won't work. I don't think it's a big issue in the end, running the valgrind constant time test on valgrind should then anyway not possible, so at least you cannot wrongly conclude that the test passes. |
The latter looks like a better approach for me. |
I'm confused. In cross-compiling setup the Are all of the tests supposed to be delivered to a host system within a "package" with |
Whether people really do this in practice is a different question but sure, ideally you run the tests on the host platform where you also run the library. Maybe I'm stating the obvious here but the purpose of the tests is not only to catch bugs in the code but also bugs introduced by the compiler or bugs that occur only in a specific execution environment. And edit: Of course it would be good to run this at least on all platforms that Core officially supports... |
Steps to reproduce on master (fecf436):
The text was updated successfully, but these errors were encountered: