From bcff0944a7413ca7cd142ecc3554899fbd4d7dd5 Mon Sep 17 00:00:00 2001 From: cf_zhao Date: Fri, 5 May 2023 15:42:02 +0800 Subject: [PATCH] When building this package with clang, an error was reported as following. This PR fixes the error. ``` In file included from sm3.c:15: ./sm3.h:17:30: error: redefinition of typedef 'SM3Context' is a C11 feature [-Werror,-Wtypedef-redefinition] typedef struct SM3ContextStr SM3Context; ^ ./blapit.h:270:30: note: previous definition is here typedef struct SM3ContextStr SM3Context; ``` --- Feature-nss-add-implement-of-SM3-digest-algorithm.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Feature-nss-add-implement-of-SM3-digest-algorithm.patch b/Feature-nss-add-implement-of-SM3-digest-algorithm.patch index b3a5717..87acf2c 100644 --- a/Feature-nss-add-implement-of-SM3-digest-algorithm.patch +++ b/Feature-nss-add-implement-of-SM3-digest-algorithm.patch @@ -313,7 +313,7 @@ index 0000000..83d787f + PRUint32 num; +}; + -+typedef struct SM3ContextStr SM3Context; ++ + +#endif /* _SM3_H_ */ -- -- Gitee