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
warning: "Function cannot return qualified void type 'volatile void'" #24
Comments
The VIA ACE code hasn't changed for many years now and I no longer have the kit that is necessary to test any changes that I might make in this. I am hence reluctant to make changes unless someone with VIA ACE kit is willing to test any changes that are made. I would expect that removing the volatile keyword would be all that is needed. If you are not using VIA ACE and simply want to remove the warnings, you can turn VIA ACE support off in aesopt.h. |
On, nice suggestion! So I just need to change:
to:
It does solve my warning issue, but can't be done as a build setting (i.e. I have to edit the file). |
The aesopt.h file (up to line 443) is intended to be edited by the user. As you can see if you look through it, this file contains a large number of user defined options that have to be set in order to obtain the optimum performance from the code. |
Xcode 8.3.3, using compiler default ([-std=gnu99]), is reporting me warnings for aes_via_ace.h:
Stack Overflow got a specific question regarding
volatile void
in AES... with a direct link to aes_via_ace.h, and it says we should use__attribute__((noreturn)) void
instead.Yet, this step is only changing the warning to another one:
The same StackOverflow thread is concerned that:
Finally, a comment reveals:
It was unspecified what are those later AES implementations. Could be any of those:
Would it be possible to get inspiration from those to get rid of the
volatile void
?The text was updated successfully, but these errors were encountered: