Fix -Werror=implicit-fallthrough on gcc7

This commit is contained in:
Julien Lecoeur
2017-06-28 16:06:06 +02:00
parent 4db21f4d7e
commit f26e83d0a1
6 changed files with 16 additions and 4 deletions
+4
View File
@@ -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;
}
+4
View File
@@ -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;
}
+4
View File
@@ -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;
}