Skip to content

Commit

Permalink
Update sm2_key.c and delete useles var
Browse files Browse the repository at this point in the history
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
  • Loading branch information
KSroido authored Dec 5, 2024
1 parent 34fa519 commit 0e030e9
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/sm2_key.c
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@ int sm2_key_print(FILE *fp, int fmt, int ind, const char *label, const SM2_KEY *
int sm2_public_key_to_der(const SM2_KEY *key, uint8_t **out, size_t *outlen)
{
uint8_t octets[65];
size_t len = 0;

if (!key) {
return 0;
Expand Down

0 comments on commit 0e030e9

Please sign in to comment.