VirtualBox

Changeset 69046 in vbox for trunk/src/VBox/Devices/Graphics


Ignore:
Timestamp:
Oct 11, 2017 4:11:23 PM (8 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
118325
Message:

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

Location:
trunk/src/VBox/Devices/Graphics
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Graphics/DevVGA-SVGA3d-info.cpp

    r68994 r69046  
    10361036                    fHitFormatAssert = true;
    10371037                }
    1038                 /* fall thru */
     1038                RT_FALL_THRU();
    10391039            default:
    10401040                /* Lazy programmer fallbacks. */
     
    12701270                    break;
    12711271                default:
    1272                     AssertFailed();  /* Fall through */
     1272                    AssertFailed();  RT_FALL_THRU();
    12731273                case 'b': //SVGA3dBlendOp
    12741274                case 'e': //SVGA3dBlendEquation
  • trunk/src/VBox/Devices/Graphics/DevVGA-SVGA3d-ogl.cpp

    r68994 r69046  
    42024202            if (pContext->state.aRenderState[SVGA3D_RS_BLENDENABLE].uintValue != 0)
    42034203                continue;   /* ignore if blend is already enabled */
    4204         }  /* Fall through */
     4204        }  RT_FALL_THRU();
    42054205
    42064206        case SVGA3D_RS_BLENDENABLE:            /* SVGA3dBool */
     
    57965796    case SVGA3D_DECLTYPE_UBYTE4N:
    57975797        normalized = GL_TRUE;
    5798         /* Fall through */
     5798        RT_FALL_THRU();
    57995799    case SVGA3D_DECLTYPE_UBYTE4:
    58005800        size = 4;
     
    58045804    case SVGA3D_DECLTYPE_SHORT2N:
    58055805        normalized = GL_TRUE;
    5806         /* Fall through */
     5806        RT_FALL_THRU();
    58075807    case SVGA3D_DECLTYPE_SHORT2:
    58085808        size = 2;
     
    58125812    case SVGA3D_DECLTYPE_SHORT4N:
    58135813        normalized = GL_TRUE;
    5814         /* Fall through */
     5814        RT_FALL_THRU();
    58155815    case SVGA3D_DECLTYPE_SHORT4:
    58165816        size = 4;
     
    62076207            case SVGA3D_DECLUSAGE_POSITIONT:
    62086208                Log(("ShaderSetPositionTransformed: (%d,%d)\n", pContext->state.RectViewPort.w, pContext->state.RectViewPort.h));
    6209                 /* Fall through */
     6209                RT_FALL_THRU();
    62106210            case SVGA3D_DECLUSAGE_POSITION:
    62116211                ShaderSetPositionTransformed(pContext->pShaderContext, pContext->state.RectViewPort.w,
  • trunk/src/VBox/Devices/Graphics/DevVGA-SVGA3d-savedstate.cpp

    r68994 r69046  
    756756                        default:
    757757                            AssertFailed();
    758                             /* Fall through */
     758                            RT_FALL_THRU();
    759759                        case SVGA3D_SURFACE_HINT_DEPTHSTENCIL:
    760760                        case SVGA3D_SURFACE_HINT_DEPTHSTENCIL | SVGA3D_SURFACE_HINT_TEXTURE:
  • trunk/src/VBox/Devices/Graphics/DevVGA_VDMA.cpp

    r65785 r69046  
    26612661                    break;
    26622662            }
    2663             /* fall thru */
     2663            RT_FALL_THRU();
    26642664            case VBVAEXHOST_DATA_TYPE_NO_DATA:
    26652665                rc = VBoxVDMAThreadEventWait(&pVdma->Thread, RT_INDEFINITE_WAIT);
  • trunk/src/VBox/Devices/Graphics/shaderlib/glsl_shader.c

    r68994 r69046  
    519519                    break;
    520520                }
    521             }  /* Fall through */
     521            }  RT_FALL_THRU();
    522522
    523523            case HEAP_NODE_TRAVERSE_RIGHT:
     
    535535                    break;
    536536                }
    537             }  /* Fall through */
     537            }  RT_FALL_THRU();
    538538
    539539            case HEAP_NODE_POP:
     
    595595                    break;
    596596                }
    597             }  /* Fall through */
     597            }  RT_FALL_THRU();
    598598
    599599            case HEAP_NODE_TRAVERSE_RIGHT:
     
    610610                    break;
    611611                }
    612             }  /* Fall through */
     612            }  RT_FALL_THRU();
    613613
    614614            case HEAP_NODE_POP:
  • trunk/src/VBox/Devices/Graphics/shaderlib/shader.c

    r54765 r69046  
    17411741        case WINED3D_SHADER_VERSION(4, 0):
    17421742            FIXME("Using 3.0 limits for 4.0 shader.\n");
    1743             /* Fall through. */
     1743            RT_FALL_THRU();
    17441744
    17451745        case WINED3D_SHADER_VERSION(3, 0):
     
    21102110                    switch (stateblock->renderState[WINED3DRS_FOGVERTEXMODE])
    21112111                    {
    2112                         case WINED3DFOG_NONE: /* Fall through. */
     2112                        case WINED3DFOG_NONE: RT_FALL_THRU();
    21132113                        case WINED3DFOG_LINEAR: args->fog = FOG_LINEAR; break;
    21142114                        case WINED3DFOG_EXP:    args->fog = FOG_EXP;    break;
     
    21892189        case WINED3D_SHADER_VERSION(4, 0):
    21902190            FIXME("Using 3.0 limits for 4.0 shader.\n");
    2191             /* Fall through. */
     2191            RT_FALL_THRU();
    21922192
    21932193        case WINED3D_SHADER_VERSION(3, 0):
Note: See TracChangeset for help on using the changeset viewer.

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