Skip to content

Commit 90b3124

Browse files
authored
Merge pull request #486 from stha09/gcc10
Fix building with gcc-10
2 parents 32b628d + 716a738 commit 90b3124

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

crypto/math/datatypes.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ int octet_get_weight(uint8_t octet)
7979

8080
/* the value MAX_PRINT_STRING_LEN is defined in datatypes.h */
8181

82-
char bit_string[MAX_PRINT_STRING_LEN];
82+
static char bit_string[MAX_PRINT_STRING_LEN];
8383

8484
uint8_t srtp_nibble_to_hex_char(uint8_t nibble)
8585
{

test/util.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
#include <stdint.h>
5050

5151
/* include space for null terminator */
52-
char bit_string[MAX_PRINT_STRING_LEN + 1];
52+
static char bit_string[MAX_PRINT_STRING_LEN + 1];
5353

5454
static inline int hex_char_to_nibble(uint8_t c)
5555
{

0 commit comments

Comments
 (0)