Changeset e0a52a4 in rtems-tools


Ignore:
Timestamp:
Apr 30, 2018, 5:50:03 AM (13 months ago)
Author:
Chris Johns <chrisj@…>
Branches:
master
Children:
3e187ba
Parents:
4bb3996
Message:

rtemstoolkit: Remove warnings generated on Windows for fall-thru.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • rtemstoolkit/ConvertUTF.c

    r4bb3996 re0a52a4  
    447447        switch (bytesToWrite) { /* note: everything falls through. */
    448448            case 4: *--target = (UTF8)((ch | byteMark) & byteMask); ch >>= 6;
    449             case 3: *--target = (UTF8)((ch | byteMark) & byteMask); ch >>= 6;
    450             case 2: *--target = (UTF8)((ch | byteMark) & byteMask); ch >>= 6;
    451             case 1: *--target = (UTF8) (ch | firstByteMark[bytesToWrite]);
     449            /* fall-thru */
     450            case 3: *--target = (UTF8)((ch | byteMark) & byteMask); ch >>= 6; /* fall-thru */
     451            case 2: *--target = (UTF8)((ch | byteMark) & byteMask); ch >>= 6; /* fall-thru */
     452            case 1: *--target = (UTF8) (ch | firstByteMark[bytesToWrite]);    /* fall-thru */
    452453        }
    453454        target += bytesToWrite;
     
    481482         */
    482483        switch (extraBytesToRead) {
    483             case 5: ch += *source++; ch <<= 6;
    484             case 4: ch += *source++; ch <<= 6;
    485             case 3: ch += *source++; ch <<= 6;
    486             case 2: ch += *source++; ch <<= 6;
    487             case 1: ch += *source++; ch <<= 6;
    488             case 0: ch += *source++;
     484            case 5: ch += *source++; ch <<= 6; /* fall-thru */
     485            case 4: ch += *source++; ch <<= 6; /* fall-thru */
     486            case 3: ch += *source++; ch <<= 6; /* fall-thru */
     487            case 2: ch += *source++; ch <<= 6; /* fall-thru */
     488            case 1: ch += *source++; ch <<= 6; /* fall-thru */
     489            case 0: ch += *source++;           /* fall-thru */
    489490        }
    490491        ch -= offsetsFromUTF8[extraBytesToRead];
Note: See TracChangeset for help on using the changeset viewer.