VirtualBox

Ignore:
Timestamp:
Oct 11, 2017 4:11:23 PM (7 years ago)
Author:
vboxsync
Message:

Global: replace fall-through comments with RT_FALL_THRU().
bugref:8192: gcc warnings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/string/strprintf.cpp

    r65642 r69046  
    8080                memcpy(pszCur, pachChars, cbChars);
    8181                break;
    82             case 8: pszCur[7] = pachChars[7]; /* fall thru */
    83             case 7: pszCur[6] = pachChars[6]; /* fall thru */
    84             case 6: pszCur[5] = pachChars[5]; /* fall thru */
    85             case 5: pszCur[4] = pachChars[4]; /* fall thru */
    86             case 4: pszCur[3] = pachChars[3]; /* fall thru */
    87             case 3: pszCur[2] = pachChars[2]; /* fall thru */
    88             case 2: pszCur[1] = pachChars[1]; /* fall thru */
    89             case 1: pszCur[0] = pachChars[0]; /* fall thru */
     82            case 8: pszCur[7] = pachChars[7]; RT_FALL_THRU();
     83            case 7: pszCur[6] = pachChars[6]; RT_FALL_THRU();
     84            case 6: pszCur[5] = pachChars[5]; RT_FALL_THRU();
     85            case 5: pszCur[4] = pachChars[4]; RT_FALL_THRU();
     86            case 4: pszCur[3] = pachChars[3]; RT_FALL_THRU();
     87            case 3: pszCur[2] = pachChars[2]; RT_FALL_THRU();
     88            case 2: pszCur[1] = pachChars[1]; RT_FALL_THRU();
     89            case 1: pszCur[0] = pachChars[0]; RT_FALL_THRU();
    9090            case 0:
    9191                break;
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette