Skip to content
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

[small fix] delete useless var in sm2_key.c #1770

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

KSroido
Copy link

@KSroido KSroido commented Dec 5, 2024

to fix error

error: ../../common/gmssl/src/sm2_key.c: In function 'sm2_public_key_to_der': ../../common/gmssl/src/sm2_key.c:110:9: error: unused variable 'len' [-Werror=unused-variable]
  size_t len = 0;
         ^~~
cc1: all warnings being treated as errors

to fix error
error: ../../common/gmssl/src/sm2_key.c: In function 'sm2_public_key_to_der':
../../common/gmssl/src/sm2_key.c:110:9: error: unused variable 'len' [-Werror=unused-variable]
  size_t len = 0;
         ^~~
cc1: all warnings being treated as errors
@KSroido KSroido changed the title Update sm2_key.c and delete useles var [small fix] delete useles var in sm2_key.c Dec 5, 2024
@KSroido
Copy link
Author

KSroido commented Dec 5, 2024

FULL log:

"aarch64-poky-linux-gcc " -c -O3 -I../../include/L946 -I../../src/L946_cn/lib -I../../src/L946_cn/lib/mqtt/include -I../../src/L946_cn/daemon -I../../common/L946 -I../../third-party/L946_cn/ipc/include -I../../third-party/bidulibs/inc -I../../third-party/L946_cn/ipc/copy -I../../third-party/L946_cn/copy/include -I../../third-party/L946_cn/ipc/ipc/inc -I../../third-party/L946_cn/ipc/ipc/inc/autolib/inc -I../../common/gmssl/include -Wall -Werror -Waddress -frename-registers -ffunction-sections -fdata-sections -o ../.objs/idsApp/linux/aarch64/release/__/__/common/gmssl/src/hash_drbg.c.o ../../common/gmssl/src/hash_drbg.c
error: ../../common/gmssl/src/sm2_key.c: In function 'sm2_public_key_to_der':
../../common/gmssl/src/sm2_key.c:110:9: error: unused variable 'len' [-Werror=unused-variable]
  size_t len = 0;
         ^~~
cc1: all warnings being treated as errors
Error: xmake build failed!

图片

@KSroido KSroido changed the title [small fix] delete useles var in sm2_key.c [small fix] delete useless var in sm2_key.c Dec 5, 2024
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.

1 participant