Skip to content

20260918-readability-redundant-declaration - #36

Merged
philljj merged 1 commit into
wolfSSL:masterfrom
douzzer:20260918-readability-redundant-declaration
Sep 24, 2026
Merged

philljj merged 1 commit into
wolfSSL:masterfrom
douzzer:20260918-readability-redundant-declaration

Conversation

@douzzer

@douzzer douzzer commented Sep 18, 2026

Copy link
Copy Markdown
Contributor

sm3.c: fix redundant prototype for wc_Sm3Copy().

detected and tested with

wolfssl-multi-test.sh ...
wolfsm-all-clang-tidy

@philljj philljj left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Makes sense, it was accidentally declared twice:

$grep -r "wc_Sm3Copy" *
sm3.c:int wc_Sm3Copy(const wc_Sm3* src, wc_Sm3* dst);
...
sm3.h:WOLFSSL_API int wc_Sm3Copy(const wc_Sm3* src, wc_Sm3* dst);

@philljj
philljj merged commit a7650b1 into wolfSSL:master Sep 24, 2026
20 checks passed
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