summaryrefslogtreecommitdiff
path: root/strings
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@mariadb.com>2020-08-11 15:48:58 +0300
committerMarko Mäkelä <marko.makela@mariadb.com>2020-08-11 15:58:16 +0300
commit31aef3ae99dff6b7154cf288b3dc508d367f19f8 (patch)
tree023c7584efc6a06809c925593bfe53842df7dc4f /strings
parent57d1a5fa8ed925b03d28aea3fab82de0823e68a8 (diff)
downloadmariadb-git-31aef3ae99dff6b7154cf288b3dc508d367f19f8.tar.gz
Fix GCC 10.2.0 -Og -Wmaybe-uninitialized
For some reason, GCC emits more -Wmaybe-uninitialized warnings when using the flag -Og than when using -O2. Many of the warnings look genuine.
Diffstat (limited to 'strings')
-rw-r--r--strings/ctype-ucs2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/strings/ctype-ucs2.c b/strings/ctype-ucs2.c
index f229bbf7323..c5182911c4a 100644
--- a/strings/ctype-ucs2.c
+++ b/strings/ctype-ucs2.c
@@ -827,7 +827,7 @@ my_strtoll10_mb2(CHARSET_INFO *cs __attribute__((unused)),
const char *nptr, char **endptr, int *error)
{
const uchar *s, *end, *start, *n_end, *true_end;
- uchar c;
+ uchar UNINIT_VAR(c);
unsigned long i, j, k;
ulonglong li;
int negative;