Skip to content

Changed function declarations to match their definitions#3243

Merged
maddeleine merged 2 commits intoaws:mainfrom
maddeleine:pq_fixes
Mar 23, 2022
Merged

Changed function declarations to match their definitions#3243
maddeleine merged 2 commits intoaws:mainfrom
maddeleine:pq_fixes

Conversation

@maddeleine
Copy link
Copy Markdown
Contributor

@maddeleine maddeleine commented Mar 22, 2022

Resolved issues:

resolves #2989

Description of changes:

gcc-11 added a new error called array-parameter, which warns about redeclarations of functions involving arguments of array or pointer types of inconsistent kinds (See release notes for more details). I fixed the places where these inconsistencies occur, in most cases, I just changed the function declaration to match the definition.

Call-outs:

I did not add gcc11 to our build, that might be a future project, although it should be pretty easy.

Testing:

s2n can be compiled with gcc11 with -Werror turned on. Basically I just did 'make CC=gcc-11'

Is this a refactor change? If so, how have you proved that the intended behavior hasn't changed?

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@maddeleine maddeleine changed the title Changed declaration to match signature Changed function declarations to match their definitions Mar 22, 2022
@maddeleine maddeleine requested review from alexw91 and lrstewart March 22, 2022 20:50
@maddeleine maddeleine merged commit 7c6fed7 into aws:main Mar 23, 2022
@maddeleine maddeleine deleted the pq_fixes branch March 23, 2022 16:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

pq-crypto/kyber_90s_r2/ntt.c fails to build with gcc 11 with -Werror

3 participants