Merged in jlecoeur/nuttx-fork/pr-arm-none-eabi-gcc7 (pull request #424)
Fix warning implicit-fallthrough with arm-none-eabi-gcc 7 Approved-by: Gregory Nutt <gnutt@nuttx.org>
This commit is contained in:
commit
80d0664647
@ -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)
|
||||
{
|
||||
|
@ -1193,7 +1193,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)
|
||||
{
|
||||
@ -1205,8 +1205,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;
|
||||
|
@ -646,6 +646,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;
|
||||
|
@ -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;
|
||||
}
|
||||
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user