Skip to content
/ server Public

Commit 08c57c5

Browse files
committed
MDEV-37600 fixup: clang 21 -Wunterminated-string-initialization
1 parent 3009210 commit 08c57c5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

plugin/auth_mysql_sha2/sha256crypt.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ void sha256_crypt_r(const unsigned char *key, size_t key_len,
3232
static const char b64t[64]
3333
#if defined __GNUC__ && __GNUC__ > 7
3434
__attribute__((nonstring))
35+
#endif
36+
#if defined __clang_major__ && __clang_major__ > 20
37+
__attribute__((nonstring))
3538
#endif
3639
= "./0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
3740
void *ctx = alloca(my_sha256_context_size());

0 commit comments

Comments
 (0)