Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix compilation errors with arm-none-eabi-gcc 7 #3

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion fs/vfs/fs_lseek.c
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ off_t file_seek(FAR struct file *filep, off_t offset, int whence)
{
case SEEK_CUR:
offset += filep->f_pos;

/* FALLTHROUGH */
case SEEK_SET:
if (offset >= 0)
{
Expand Down
13 changes: 7 additions & 6 deletions libc/stdio/lib_dtoa.c
Original file line number Diff line number Diff line change
Expand Up @@ -817,10 +817,11 @@ static const double bigtens[] =
1e16, 1e32, 1e64, 1e128, 1e256
};

static const double tinytens[] =
{
1e-16, 1e-32, 1e-64, 1e-128, 1e-256
};
// Unused
// static const double tinytens[] =
// {
// 1e-16, 1e-32, 1e-64, 1e-128, 1e-256
// };

# define n_bigtens 5
#else
Expand Down Expand Up @@ -1190,7 +1191,7 @@ char *__dtoa(double d, int mode, int ndigits, int *decpt, int *sign, char **rve)

case 2:
leftright = 0;
/* no break */
/* FALLTHROUGH */
case 4:
if (ndigits <= 0)
{
Expand All @@ -1202,7 +1203,7 @@ char *__dtoa(double d, int mode, int ndigits, int *decpt, int *sign, char **rve)

case 3:
leftright = 0;
/* no break */
/* FALLTHROUGH */
case 5:
i = ndigits + k + 1;
ilim = i;
Expand Down
1 change: 1 addition & 0 deletions libc/stdio/lib_sscanf.c
Original file line number Diff line number Diff line change
Expand Up @@ -417,6 +417,7 @@ int vsscanf(FAR const char *buf, FAR const char *fmt, va_list ap)
default:
case 'd':
sign = true;
/* FALLTHROUGH */
case 'u':
base = 10;
break;
Expand Down
4 changes: 4 additions & 0 deletions libc/stdlib/lib_strtod.c
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,10 @@ double strtod(FAR const char *str, FAR char **endptr)
{
case '-':
negative = 1; /* Fall through to increment position */
/* FALLTHROUGH */
case '+':
p++;
/* FALLTHROUGH */
default:
break;
}
Expand Down Expand Up @@ -175,8 +177,10 @@ double strtod(FAR const char *str, FAR char **endptr)
{
case '-':
negative = 1; /* Fall through to increment pos */
/* FALLTHROUGH */
case '+':
p++;
/* FALLTHROUGH */
default:
break;
}
Expand Down
4 changes: 4 additions & 0 deletions libc/stdlib/lib_strtof.c
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,10 @@ float strtof(FAR const char *str, FAR char **endptr)
{
case '-':
negative = 1; /* Fall through to increment position */
/* FALLTHROUGH */
case '+':
p++;
/* FALLTHROUGH */
default:
break;
}
Expand Down Expand Up @@ -177,8 +179,10 @@ float strtof(FAR const char *str, FAR char **endptr)
{
case '-':
negative = 1; /* Fall through to increment pos */
/* FALLTHROUGH */
case '+':
p++;
/* FALLTHROUGH */
default:
break;
}
Expand Down
4 changes: 4 additions & 0 deletions libc/stdlib/lib_strtold.c
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,10 @@ long double strtold(FAR const char *str, FAR char **endptr)
{
case '-':
negative = 1; /* Fall through to increment position */
/* FALLTHROUGH */
case '+':
p++;
/* FALLTHROUGH */
default:
break;
}
Expand Down Expand Up @@ -175,8 +177,10 @@ long double strtold(FAR const char *str, FAR char **endptr)
{
case '-':
negative = 1; /* Fall through to increment pos */
/* FALLTHROUGH */
case '+':
p++;
/* FALLTHROUGH */
default:
break;
}
Expand Down