| Index: source/common/ucnvscsu.c
|
| diff --git a/source/common/ucnvscsu.c b/source/common/ucnvscsu.c
|
| index 1aacd810d76e729f90cd91a0899bce1b937713c2..9849cdebbbb80ae2019344c6a0f99c39f1675f7c 100644
|
| --- a/source/common/ucnvscsu.c
|
| +++ b/source/common/ucnvscsu.c
|
| @@ -1,7 +1,9 @@
|
| +// Copyright (C) 2016 and later: Unicode, Inc. and others.
|
| +// License & terms of use: http://www.unicode.org/copyright.html
|
| /*
|
| ******************************************************************************
|
| *
|
| -* Copyright (C) 2000-2015, International Business Machines
|
| +* Copyright (C) 2000-2016, International Business Machines
|
| * Corporation and others. All Rights Reserved.
|
| *
|
| ******************************************************************************
|
| @@ -1395,12 +1397,16 @@ outputBytes:
|
| /* each branch falls through to the next one */
|
| case 4:
|
| *target++=(uint8_t)(c>>24);
|
| - case 3: /*fall through*/
|
| + U_FALLTHROUGH;
|
| + case 3:
|
| *target++=(uint8_t)(c>>16);
|
| - case 2: /*fall through*/
|
| + U_FALLTHROUGH;
|
| + case 2:
|
| *target++=(uint8_t)(c>>8);
|
| - case 1: /*fall through*/
|
| + U_FALLTHROUGH;
|
| + case 1:
|
| *target++=(uint8_t)c;
|
| + U_FALLTHROUGH;
|
| default:
|
| /* will never occur */
|
| break;
|
| @@ -1411,15 +1417,19 @@ outputBytes:
|
| case 4:
|
| *target++=(uint8_t)(c>>24);
|
| *offsets++=sourceIndex;
|
| - case 3: /*fall through*/
|
| + U_FALLTHROUGH;
|
| + case 3:
|
| *target++=(uint8_t)(c>>16);
|
| *offsets++=sourceIndex;
|
| - case 2: /*fall through*/
|
| + U_FALLTHROUGH;
|
| + case 2:
|
| *target++=(uint8_t)(c>>8);
|
| *offsets++=sourceIndex;
|
| - case 1: /*fall through*/
|
| + U_FALLTHROUGH;
|
| + case 1:
|
| *target++=(uint8_t)c;
|
| *offsets++=sourceIndex;
|
| + U_FALLTHROUGH;
|
| default:
|
| /* will never occur */
|
| break;
|
| @@ -1448,12 +1458,16 @@ outputBytes:
|
| /* each branch falls through to the next one */
|
| case 4:
|
| *p++=(uint8_t)(c>>24);
|
| - case 3: /*fall through*/
|
| + U_FALLTHROUGH;
|
| + case 3:
|
| *p++=(uint8_t)(c>>16);
|
| - case 2: /*fall through*/
|
| + U_FALLTHROUGH;
|
| + case 2:
|
| *p++=(uint8_t)(c>>8);
|
| - case 1: /*fall through*/
|
| + U_FALLTHROUGH;
|
| + case 1:
|
| *p=(uint8_t)c;
|
| + U_FALLTHROUGH;
|
| default:
|
| /* will never occur */
|
| break;
|
| @@ -1469,16 +1483,19 @@ outputBytes:
|
| if(offsets!=NULL) {
|
| *offsets++=sourceIndex;
|
| }
|
| - case 2: /*fall through*/
|
| + U_FALLTHROUGH;
|
| + case 2:
|
| *target++=(uint8_t)(c>>8);
|
| if(offsets!=NULL) {
|
| *offsets++=sourceIndex;
|
| }
|
| - case 1: /*fall through*/
|
| + U_FALLTHROUGH;
|
| + case 1:
|
| *target++=(uint8_t)c;
|
| if(offsets!=NULL) {
|
| *offsets++=sourceIndex;
|
| }
|
| + U_FALLTHROUGH;
|
| default:
|
| break;
|
| }
|
| @@ -1853,12 +1870,16 @@ outputBytes:
|
| /* each branch falls through to the next one */
|
| case 4:
|
| *target++=(uint8_t)(c>>24);
|
| - case 3: /*fall through*/
|
| + U_FALLTHROUGH;
|
| + case 3:
|
| *target++=(uint8_t)(c>>16);
|
| - case 2: /*fall through*/
|
| + U_FALLTHROUGH;
|
| + case 2:
|
| *target++=(uint8_t)(c>>8);
|
| - case 1: /*fall through*/
|
| + U_FALLTHROUGH;
|
| + case 1:
|
| *target++=(uint8_t)c;
|
| + U_FALLTHROUGH;
|
| default:
|
| /* will never occur */
|
| break;
|
| @@ -1885,12 +1906,16 @@ outputBytes:
|
| /* each branch falls through to the next one */
|
| case 4:
|
| *p++=(uint8_t)(c>>24);
|
| - case 3: /*fall through*/
|
| + U_FALLTHROUGH;
|
| + case 3:
|
| *p++=(uint8_t)(c>>16);
|
| - case 2: /*fall through*/
|
| + U_FALLTHROUGH;
|
| + case 2:
|
| *p++=(uint8_t)(c>>8);
|
| - case 1: /*fall through*/
|
| + U_FALLTHROUGH;
|
| + case 1:
|
| *p=(uint8_t)c;
|
| + U_FALLTHROUGH;
|
| default:
|
| /* will never occur */
|
| break;
|
| @@ -1903,10 +1928,13 @@ outputBytes:
|
| /* each branch falls through to the next one */
|
| case 3:
|
| *target++=(uint8_t)(c>>16);
|
| - case 2: /*fall through*/
|
| + U_FALLTHROUGH;
|
| + case 2:
|
| *target++=(uint8_t)(c>>8);
|
| - case 1: /*fall through*/
|
| + U_FALLTHROUGH;
|
| + case 1:
|
| *target++=(uint8_t)c;
|
| + U_FALLTHROUGH;
|
| default:
|
| break;
|
| }
|
|
|