diff options
author | monty@mysql.com/narttu.mysql.fi <> | 2007-02-22 16:59:57 +0200 |
---|---|---|
committer | monty@mysql.com/narttu.mysql.fi <> | 2007-02-22 16:59:57 +0200 |
commit | e5cc397f33e6c9916043742194bbdc809e118905 (patch) | |
tree | 260c15e9d6f383c404ea95e9e68ef07f0eba2cea /strings/decimal.c | |
parent | 6946fa682fd6b0f90f17f1bd2bf1bdc9579c0fca (diff) | |
download | mariadb-git-e5cc397f33e6c9916043742194bbdc809e118905.tar.gz |
Fixed compiler warnings (for linux and win32 and win64)
Fixed a couple of usage of not initialized warnings (unlikely cases)
Diffstat (limited to 'strings/decimal.c')
-rw-r--r-- | strings/decimal.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/strings/decimal.c b/strings/decimal.c index bfbf6187064..ea92174bfc8 100644 --- a/strings/decimal.c +++ b/strings/decimal.c @@ -1356,6 +1356,7 @@ int bin2decimal(char *from, decimal_t *to, int precision, int scale) { int i=dig2bytes[intg0x]; dec1 x; + LINT_INIT(x); switch (i) { case 1: x=mi_sint1korr(from); break; @@ -1397,6 +1398,7 @@ int bin2decimal(char *from, decimal_t *to, int precision, int scale) { int i=dig2bytes[frac0x]; dec1 x; + LINT_INIT(x); switch (i) { case 1: x=mi_sint1korr(from); break; @@ -1483,6 +1485,7 @@ decimal_round(decimal_t *from, decimal_t *to, int scale, sanity(to); + LINT_INIT(round_digit); switch (mode) { case HALF_UP: case HALF_EVEN: round_digit=5; break; |