fix build warning with arm64 gcc 5.4
GCC 5.4 reports below warning on Arm64 ``` warning: 'vst1q_u8' is static but used in inline function 'mbedtls_xor' which is not static ``` This inline function miss `static`, others have the keyword Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
This commit is contained in:
parent
12d8b8eaba
commit
da3c206ebd
1 changed files with 4 additions and 1 deletions
|
@ -165,7 +165,10 @@ static inline const unsigned char *mbedtls_buffer_offset_const(
|
||||||
* \param b Pointer to input (buffer of at least \p n bytes)
|
* \param b Pointer to input (buffer of at least \p n bytes)
|
||||||
* \param n Number of bytes to process.
|
* \param n Number of bytes to process.
|
||||||
*/
|
*/
|
||||||
inline void mbedtls_xor(unsigned char *r, const unsigned char *a, const unsigned char *b, size_t n)
|
static inline void mbedtls_xor(unsigned char *r,
|
||||||
|
const unsigned char *a,
|
||||||
|
const unsigned char *b,
|
||||||
|
size_t n)
|
||||||
{
|
{
|
||||||
size_t i = 0;
|
size_t i = 0;
|
||||||
#if defined(MBEDTLS_EFFICIENT_UNALIGNED_ACCESS)
|
#if defined(MBEDTLS_EFFICIENT_UNALIGNED_ACCESS)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue