diff options
author | Marko Mäkelä <marko.makela@mariadb.com> | 2020-08-11 15:48:58 +0300 |
---|---|---|
committer | Marko Mäkelä <marko.makela@mariadb.com> | 2020-08-11 15:58:16 +0300 |
commit | 31aef3ae99dff6b7154cf288b3dc508d367f19f8 (patch) | |
tree | 023c7584efc6a06809c925593bfe53842df7dc4f /strings | |
parent | 57d1a5fa8ed925b03d28aea3fab82de0823e68a8 (diff) | |
download | mariadb-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.c | 2 |
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; |