1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-01 03:47:19 +03:00

Fixed compiler warnings (for linux and win32 and win64)

Fixed a couple of usage of not initialized warnings (unlikely cases)
This commit is contained in:
monty@mysql.com/narttu.mysql.fi
2007-02-22 16:59:57 +02:00
parent 6946fa682f
commit e5cc397f33
43 changed files with 122 additions and 61 deletions

View File

@ -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;